relocate templates; fix use of deprecated before_template

This commit is contained in:
Oliver Gorwits
2012-01-20 21:42:39 +00:00
parent beed2e4115
commit 44e79b9b93
11 changed files with 5 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ use Netdisco::Web::AuthN;
use Netdisco::Web::Search;
use Netdisco::Web::Device;
before_template sub {
hook 'before_template' => sub {
my $tokens = shift;
# allow portable static content

View File

@@ -8,7 +8,7 @@
<h3 class="device_label">[% d.ip %]</h3>
<p class="device_label">[% d.dns.remove(settings.domain_suffix) %]</p>
</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 -->
[% END %]
</div> <!-- /tab-content -->
@@ -29,5 +29,5 @@
</div>
<script type="text/javascript">
[%+ INCLUDE 'inc/js/device.js' -%]
[%+ INCLUDE 'js/device.js' -%]
</script>

View File

@@ -8,7 +8,7 @@
<div class="clearfix">
<input class="span3" name="q" value="[% params.q %]" type="text"/>
</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"/>
<div class="nd_search clearfix">
<button id="[% tab.id %]_submit" type="submit" class="btn info">Search Again</button>
@@ -38,5 +38,5 @@
</div>
<script type="text/javascript">
[%+ INCLUDE 'inc/js/search.js' -%]
[%+ INCLUDE 'js/search.js' -%]
</script>