mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed icon for bgp search (#10931)
This commit is contained in:
@@ -182,9 +182,9 @@ if (isset($_REQUEST['search'])) {
|
||||
}
|
||||
|
||||
if ($result['bgpPeerRemoteAs'] == $result['bgpLocalAs']) {
|
||||
$bgp_image = '<i class="fa fa-square fa-lg icon-theme" aria-hidden="true"></i>';
|
||||
$bgp_image = 'fa fa-square fa-lg icon-theme';
|
||||
} else {
|
||||
$bgp_image = '<i class="fa fa-external-link-square fa-lg icon-theme" aria-hidden="true"></i>';
|
||||
$bgp_image = 'fa fa-external-link-square fa-lg icon-theme';
|
||||
}
|
||||
|
||||
$bgp[] = array(
|
||||
|
||||
@@ -670,7 +670,7 @@
|
||||
valueKey: 'name',
|
||||
templates: {
|
||||
header: '<h5><strong> BGP Sessions</strong></h5>',
|
||||
suggestion: Handlebars.compile('<p><a href="@{{url}}"><small>@{{bgp_image}} @{{name}} - @{{hostname}}<br />AS@{{localas}} -> AS@{{remoteas}}</small></a></p>')
|
||||
suggestion: Handlebars.compile('<p><a href="@{{url}}"><small><i class="@{{bgp_image}}" aria-hidden="true"></i> @{{name}} - @{{hostname}}<br />AS@{{localas}} -> AS@{{remoteas}}</small></a></p>')
|
||||
}
|
||||
}).on('typeahead:select', function (ev, suggestion) {
|
||||
window.location.href = suggestion.url;
|
||||
|
||||
Reference in New Issue
Block a user