sidebar built from config, colvis defaults from sidebar

This commit is contained in:
Oliver Gorwits
2014-10-25 19:19:56 +01:00
parent ca6a08ef46
commit bd3bcb36f8
7 changed files with 168 additions and 92 deletions

View File

@@ -84,6 +84,11 @@ hook 'before_template' => sub {
$tokens->{$_} = $tokens->{$_}->path_query
for qw/search_node search_device device_ports/;
# shorthand access to section and tabname
my @parts = split m{/}, request->path;
$tokens->{section} ||= $parts[-2];
$tokens->{tabname} ||= $parts[-1];
# allow very long lists of ports
$Template::Directive::WHILE_MAX = 10_000;