From 848b9fbdc47e2d670947932545533198961102ce Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Wed, 7 Jan 2015 16:41:59 +0200 Subject: [PATCH] copyright end year is this year --- lib/PerlDancer.pm | 4 +++- views/layouts/main.tt | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/PerlDancer.pm b/lib/PerlDancer.pm index c4c51e7..6e7aacb 100644 --- a/lib/PerlDancer.pm +++ b/lib/PerlDancer.pm @@ -31,7 +31,9 @@ get '/dancefloor' => sub { # Add last tweet to template params hook before_template_render => sub { - shift->{last_tweet} = latest_tweet(); + my $t = shift; + $t->{last_tweet} = latest_tweet(); + $t->{this_year} = 1900 + (localtime)[5]; }; # Find the latest stable version on Github. Cache it for a while, to avoid diff --git a/views/layouts/main.tt b/views/layouts/main.tt index d53c61d..36d91d0 100644 --- a/views/layouts/main.tt +++ b/views/layouts/main.tt @@ -7,7 +7,7 @@ - + @@ -86,7 +86,7 @@ On Twitter: <% last_tweet %> - +