#1118 user configurable external links from node search and device details

* frontend example

* process config with template macro

* shared external links template for mac and IP search

* default into product config

* add support for device external links

* better presentation of IP links and change color to grey
This commit is contained in:
Oliver Gorwits
2023-11-11 22:05:02 +00:00
committed by GitHub
parent 7ba080c0dc
commit ac54635628
6 changed files with 51 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
[% PROCESS 'externallinks.tt' -%]
[% SET user_can_port_control = user_has_role('port_control', d) %]
<table class="table table-condensed table-striped">
<tbody>
@@ -115,7 +116,7 @@
[% END %]
[% END %]
<tr>
<td>Administration</td>
<td>External Links</td>
<td>
<a href="ssh://[% d.ip | uri %]" target="_blank">
<span class="label label-info"><i class="icon-keyboard"></i> SSH</span></a>
@@ -123,6 +124,7 @@
<span class="label label-info"><i class="icon-keyboard"></i> Telnet</span></a>
<a href="https://[% d.ip | uri %]/" target="_blank">
<span class="label label-info"><i class="icon-external-link"></i> Web</span></a>
[% INCLUDE external_device_links item = d %]
</td>
</tr>
<tr>