summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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') %>"/>