From 02b2ed998d353a1e117c4a1a41dc6c6c6436f98a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 18 Dec 2014 14:38:06 +0100 Subject: default template: do not rely on variables being set --- templates/layouts/default.html.ep | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index a6ffaae..2399779 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -1,7 +1,7 @@ - <%= $title %> + <%= stash('title') // 'db-fakedisplay' %> % if ($self->stash('refresh_interval')) { @@ -15,7 +15,7 @@ $(function () { $('marquee').marquee() }); % end - + % if (my $error = stash 'error') {
Backend-Fehler:
@@ -45,7 +45,7 @@ % } -% if (not $hide_opts) { +% if (not stash('hide_opts')) {
@@ -169,7 +169,7 @@ nur Züge via Bochum oder Hamm)
db-fakedisplay -v<%= $version %> +v<%= stash('version') // '???' %>
% } -- cgit v1.2.3