summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-03-08 16:11:05 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-03-08 16:11:05 +0100
commita3653fc91cda3ff430a16bf04351e71844b92e95 (patch)
tree74e1c0a3939d29c31e94bce6ca31234e06810307
parentcdbd525d9332ff1ce084ba268ca8bc9b4f171f02 (diff)
proper title tag
-rw-r--r--index.pl9
-rw-r--r--templates/layouts/default.html.ep2
2 files changed, 8 insertions, 3 deletions
diff --git a/index.pl b/index.pl
index 4efa602..2864059 100644
--- a/index.pl
+++ b/index.pl
@@ -436,7 +436,11 @@ get '/bar' => sub {
$self->param( yformat => $args{y}{$ysource}{yformat} );
}
- $self->render( 'bargraph', version => $VERSION );
+ $self->render(
+ 'bargraph',
+ title => 'bargraph',
+ version => $VERSION,
+ );
return;
};
@@ -476,8 +480,9 @@ get '/top' => sub {
$self->render(
'toplist',
+ title => 'toplist',
toplist => \@toplist,
- version => $VERSION
+ version => $VERSION,
);
return;
};
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index b59cbf3..1c58277 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title><%= stash('title') // 'iris-delay-stats' %></title>
+ <title><%= stash('title') ? "dbdb - " . stash('title') : 'dbdb' %></title>
<meta charset="utf-8">
% if ($self->stash('refresh_interval')) {
<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>