Skip to content

Commit

Permalink
Updated the global search visually and extended hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
laf committed Jun 10, 2014
1 parent d6b9b56 commit c2a91a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
13 changes: 12 additions & 1 deletion html/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1611,5 +1611,16 @@ tr.search:nth-child(odd) {

.tt-dropdown-menu
{
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;
}

12 changes: 6 additions & 6 deletions html/includes/print-menubar.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,9 @@

<ul class="nav navbar-nav navbar-right">
<li style="padding-top:10px">
<form role="search class="navbar-form navbar-left">
<form role="form" class="form-inline">
<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>
</form>
</li>
Expand Down Expand Up @@ -550,24 +550,24 @@
name: 'devices',
remote : 'ajax_search.php?search=%QUERY&type=device',
header : '<h5><strong>&nbsp;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",
engine: Hogan
},
{
name: 'ports',
remote : 'ajax_search.php?search=%QUERY&type=ports',
header : '<h5><strong>&nbsp;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",
engine: Hogan
},
{
name: 'bgp',
remote : 'ajax_search.php?search=%QUERY&type=bgp',
header : '<h5><strong>&nbsp;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>',
valueKey: 'name',
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",
engine: Hogan
}
]);
Expand Down

0 comments on commit c2a91a9

Please sign in to comment.