diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-03-08 16:11:05 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-03-08 16:11:05 +0100 |
commit | a3653fc91cda3ff430a16bf04351e71844b92e95 (patch) | |
tree | 74e1c0a3939d29c31e94bce6ca31234e06810307 | |
parent | cdbd525d9332ff1ce084ba268ca8bc9b4f171f02 (diff) |
proper title tag
-rw-r--r-- | index.pl | 9 | ||||
-rw-r--r-- | templates/layouts/default.html.ep | 2 |
2 files changed, 8 insertions, 3 deletions
@@ -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') %>"/> |