summaryrefslogtreecommitdiff
path: root/templates/layouts
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-12-18 14:38:06 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-12-18 14:38:06 +0100
commit02b2ed998d353a1e117c4a1a41dc6c6c6436f98a (patch)
tree054b7811d2ae40728405379e5a112f3e360b45d1 /templates/layouts
parent39d159d3718b4be8839a17b06838d046a45c4b29 (diff)
default template: do not rely on variables being set
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/default.html.ep8
1 files changed, 4 insertions, 4 deletions
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 @@
<!DOCTYPE html>
<html>
<head>
- <title><%= $title %></title>
+ <title><%= stash('title') // 'db-fakedisplay' %></title>
<meta charset="utf-8">
% if ($self->stash('refresh_interval')) {
<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
@@ -15,7 +15,7 @@
$(function () { $('marquee').marquee() });
% end
</head>
-<body style="<%= ($hide_opts ? 'margin: 0; padding: 0;' : q{}) %>">
+<body style="<%= (stash('hide_opts') ? 'margin: 0; padding: 0;' : q{}) %>">
% if (my $error = stash 'error') {
<div class="error">Backend-Fehler:</div>
@@ -45,7 +45,7 @@
% }
-% if (not $hide_opts) {
+% if (not stash('hide_opts')) {
<div class="input-field">
@@ -169,7 +169,7 @@ nur Züge via Bochum oder Hamm)</li>
<div class="about">
<a href="http://finalrewind.org/projects/db-fakedisplay/">db-fakedisplay</a>
-v<%= $version %>
+v<%= stash('version') // '???' %>
</div>
% }