#1064 display device and device port tags in web ui

This commit is contained in:
Oliver Gorwits
2023-07-19 13:01:51 +01:00
parent 4b99f0bb9c
commit 04ee1e1613
6 changed files with 52 additions and 19 deletions

View File

@@ -79,6 +79,14 @@
<td>Description</td>
<td>[% d.description | html_entity | html_line_break %]</td>
</tr>
<tr>
<td>Tags</td>
<td>
[% FOREACH t IN filtered_tags %]
<span class="badge badge-success">[% t | html_entity %]</span>
[% END %]
</td>
</tr>
[% IF settings._extra_device_details.size %]
[% FOREACH config IN settings._extra_device_details %]
<tr>

View File

@@ -145,6 +145,14 @@
</td>
[% END %]
[% IF params.c_tags %]
<td>
[% FOREACH t IN row.filtered_tags.sort %]
<span class="badge badge-success">[% t | html_entity %]</span>
[% END %]
</td>
[% END %]
[% FOREACH config IN settings._extra_device_port_cols %]
[% NEXT UNLESS config.position == 'left' AND params.${config.name} %]

View File

@@ -67,6 +67,10 @@
[% myport.push(row.name) %]
[% END %]
[% IF params.c_tags %]
[% myport.push(row.filtered_tags.join(':')) %]
[% END %]
[% FOREACH config IN settings._extra_device_port_cols %]
[% NEXT UNLESS config.position == 'left' AND params.${config.name} %]
[% TRY %]