remove firstsearch and add storable dep
This commit is contained in:
1
Build.PL
1
Build.PL
@@ -64,6 +64,7 @@ Module::Build->new(
|
|||||||
'Sereal' => '0',
|
'Sereal' => '0',
|
||||||
'Socket6' => '0.23',
|
'Socket6' => '0.23',
|
||||||
'Starman' => '0.4008',
|
'Starman' => '0.4008',
|
||||||
|
'Storable' => 0,
|
||||||
'SNMP::Info' => '3.38',
|
'SNMP::Info' => '3.38',
|
||||||
'SQL::Translator' => '0.11018',
|
'SQL::Translator' => '0.11018',
|
||||||
'Template' => '2.24',
|
'Template' => '2.24',
|
||||||
|
|||||||
@@ -62,8 +62,6 @@ hook 'before' => sub {
|
|||||||
return unless (request->path eq uri_for('/device')->path
|
return unless (request->path eq uri_for('/device')->path
|
||||||
or index(request->path, uri_for('/ajax/content/device')->path) == 0);
|
or index(request->path, uri_for('/ajax/content/device')->path) == 0);
|
||||||
|
|
||||||
# force always setting params manually
|
|
||||||
params->{'firstsearch'} = 'on';
|
|
||||||
# TODO set cookie
|
# TODO set cookie
|
||||||
# if (param('reset') or not param('tab') or param('tab') ne 'ports') {
|
# if (param('reset') or not param('tab') or param('tab') ne 'ports') {
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
[% FOREACH item IN settings._reports_menu.$category %]
|
[% FOREACH item IN settings._reports_menu.$category %]
|
||||||
[% NEXT IF settings._reports.$item.hidden %]
|
[% NEXT IF settings._reports.$item.hidden %]
|
||||||
<li><a href="[% uri_for('/report/' _ item) %]?firstsearch=on">[% settings._reports.$item.label | html_entity %]</a></li>
|
<li><a href="[% uri_for('/report/' _ item) %]">[% settings._reports.$item.label | html_entity %]</a></li>
|
||||||
[% END %]
|
[% END %]
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@@ -138,7 +138,6 @@
|
|||||||
<form class="navbar-search pull-left" method="get" action="[% uri_for('/search') %]">
|
<form class="navbar-search pull-left" method="get" action="[% uri_for('/search') %]">
|
||||||
<input placeholder="Find Anything" class="search-query span3"
|
<input placeholder="Find Anything" class="search-query span3"
|
||||||
id="nq" name="q" value="[% display_name %]" type="text" autocomplete="off"/>
|
id="nq" name="q" value="[% display_name %]" type="text" autocomplete="off"/>
|
||||||
<input name="firstsearch" type="hidden" value="on">
|
|
||||||
<div class="btn-group nd_navbar-search-group">
|
<div class="btn-group nd_navbar-search-group">
|
||||||
<button class="btn btn-inverse nd_navbar-search-icon">
|
<button class="btn btn-inverse nd_navbar-search-icon">
|
||||||
<span style="font-size: 18px;">
|
<span style="font-size: 18px;">
|
||||||
|
|||||||
Reference in New Issue
Block a user