Fixed icon for bgp search (#10931)

This commit is contained in:
PipoCanaja
2019-12-11 17:58:58 +01:00
committed by GitHub
co-authored by GitHub
parent a0367c4186
commit b2d90dc8fa
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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(
+1 -1
View File
@@ -670,7 +670,7 @@
valueKey: 'name',
templates: {
header: '<h5><strong>&nbsp;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;