mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated the global search visually and extended hyperlinks
This commit is contained in:
@ -1613,3 +1613,14 @@ tr.search:nth-child(odd) {
|
|||||||
{
|
{
|
||||||
min-width: 500px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.twitter-typeahead .tt-hint {
|
||||||
|
display: block;
|
||||||
|
height: 34px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.428571429;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
width: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -490,9 +490,9 @@ if(is_file("includes/print-menubar-custom.inc.php"))
|
|||||||
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
<li style="padding-top:10px">
|
<li style="padding-top:10px">
|
||||||
<form role="search class="navbar-form navbar-left">
|
<form role="form" class="form-inline">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input class="input-large search-query" type="search" id="gsearch" name="gsearch" placeholder="Global Search" style="width: 250px">
|
<input class="form-control" type="search" id="gsearch" name="gsearch" placeholder="Global Search" style="width: 250px">
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
@ -550,7 +550,7 @@ if ($_SESSION['authenticated'])
|
|||||||
name: 'devices',
|
name: 'devices',
|
||||||
remote : 'ajax_search.php?search=%QUERY&type=device',
|
remote : 'ajax_search.php?search=%QUERY&type=device',
|
||||||
header : '<h5><strong> Devices</strong></h5>',
|
header : '<h5><strong> Devices</strong></h5>',
|
||||||
template: '<p><img src="{{device_image}}" border="0" class="img_left"> <small><a href="{{url}}"><strong>{{name}}</strong> | {{device_os}} | {{version}} | {{device_hardware}} with {{device_ports}} port(s) | {{location}}</a></small></p>',
|
template: '<a href="{{url}}"><p><img src="{{device_image}}" border="0" class="img_left"> <small><strong>{{name}}</strong> | {{device_os}} | {{version}} | {{device_hardware}} with {{device_ports}} port(s) | {{location}}</small></p></a>',
|
||||||
valueKey:"name",
|
valueKey:"name",
|
||||||
engine: Hogan
|
engine: Hogan
|
||||||
},
|
},
|
||||||
@ -558,7 +558,7 @@ if ($_SESSION['authenticated'])
|
|||||||
name: 'ports',
|
name: 'ports',
|
||||||
remote : 'ajax_search.php?search=%QUERY&type=ports',
|
remote : 'ajax_search.php?search=%QUERY&type=ports',
|
||||||
header : '<h5><strong> Ports</strong></h5>',
|
header : '<h5><strong> Ports</strong></h5>',
|
||||||
template: '<p><small><a href="{{url}}"><img src="images/icons/port.png" /> <strong>{{name}}</strong> – {{hostname}}</a></small></p>',
|
template: '<a href="{{url}}"><p><small><img src="images/icons/port.png" /> <strong>{{name}}</strong> – {{hostname}}</small></p></a>',
|
||||||
valueKey: "name",
|
valueKey: "name",
|
||||||
engine: Hogan
|
engine: Hogan
|
||||||
},
|
},
|
||||||
@ -566,8 +566,8 @@ if ($_SESSION['authenticated'])
|
|||||||
name: 'bgp',
|
name: 'bgp',
|
||||||
remote : 'ajax_search.php?search=%QUERY&type=bgp',
|
remote : 'ajax_search.php?search=%QUERY&type=bgp',
|
||||||
header : '<h5><strong> BGP</strong></h5>',
|
header : '<h5><strong> BGP</strong></h5>',
|
||||||
template: '<p><small><a href="{{url}}"><img src="{{bgp_image}}" border="0" class="img_left">{{name}} - {{hostname}}<br />AS{{localas}} -> AS{{remoteas}}</a></small></p>',
|
template: '<a href="{{url}}"><p><small><img src="{{bgp_image}}" border="0" class="img_left">{{name}} - {{hostname}}<br />AS{{localas}} -> AS{{remoteas}}</small></p></a>',
|
||||||
valueKey: 'name',
|
valueKey: "name",
|
||||||
engine: Hogan
|
engine: Hogan
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
Reference in New Issue
Block a user