relocate templates; fix use of deprecated before_template
This commit is contained in:
@@ -11,7 +11,7 @@ use Netdisco::Web::AuthN;
|
|||||||
use Netdisco::Web::Search;
|
use Netdisco::Web::Search;
|
||||||
use Netdisco::Web::Device;
|
use Netdisco::Web::Device;
|
||||||
|
|
||||||
before_template sub {
|
hook 'before_template' => sub {
|
||||||
my $tokens = shift;
|
my $tokens = shift;
|
||||||
|
|
||||||
# allow portable static content
|
# allow portable static content
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<h3 class="device_label">[% d.ip %]</h3>
|
<h3 class="device_label">[% d.ip %]</h3>
|
||||||
<p class="device_label">[% d.dns.remove(settings.domain_suffix) %]</p>
|
<p class="device_label">[% d.dns.remove(settings.domain_suffix) %]</p>
|
||||||
</div>
|
</div>
|
||||||
[%+ TRY %][% INCLUDE "inc/device/${tab.id}.tt" %][% CATCH %]<!-- no "[% tab.id %]" search options -->[% END %]
|
[%+ TRY %][% INCLUDE "sidebar/device/${tab.id}.tt" %][% CATCH %]<!-- no "[% tab.id %]" search options -->[% END %]
|
||||||
</div> <!-- /tab-pane -->
|
</div> <!-- /tab-pane -->
|
||||||
[% END %]
|
[% END %]
|
||||||
</div> <!-- /tab-content -->
|
</div> <!-- /tab-content -->
|
||||||
@@ -29,5 +29,5 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
[%+ INCLUDE 'inc/js/device.js' -%]
|
[%+ INCLUDE 'js/device.js' -%]
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<input class="span3" name="q" value="[% params.q %]" type="text"/>
|
<input class="span3" name="q" value="[% params.q %]" type="text"/>
|
||||||
</div>
|
</div>
|
||||||
[%+ TRY %][% INCLUDE "inc/search/${tab.id}.tt" %][% CATCH %]<!-- no "[% tab.id %]" search options -->[% END %]
|
[%+ TRY %][% INCLUDE "sidebar/search/${tab.id}.tt" %][% CATCH %]<!-- no "[% tab.id %]" search options -->[% END %]
|
||||||
<input name="tab" value="[% tab.id %]" type="hidden"/>
|
<input name="tab" value="[% tab.id %]" type="hidden"/>
|
||||||
<div class="nd_search clearfix">
|
<div class="nd_search clearfix">
|
||||||
<button id="[% tab.id %]_submit" type="submit" class="btn info">Search Again</button>
|
<button id="[% tab.id %]_submit" type="submit" class="btn info">Search Again</button>
|
||||||
@@ -38,5 +38,5 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
[%+ INCLUDE 'inc/js/search.js' -%]
|
[%+ INCLUDE 'js/search.js' -%]
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user