From a3653fc91cda3ff430a16bf04351e71844b92e95 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 8 Mar 2015 16:11:05 +0100 Subject: proper title tag --- index.pl | 9 +++++++-- templates/layouts/default.html.ep | 2 +- 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 @@ - <%= stash('title') // 'iris-delay-stats' %> + <%= stash('title') ? "dbdb - " . stash('title') : 'dbdb' %> % if ($self->stash('refresh_interval')) { -- cgit v1.2.3