Skip to content

Commit

Permalink
copyright end year is this year
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jan 7, 2015
1 parent f675402 commit 848b9fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/PerlDancer.pm
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions views/layouts/main.tt
Expand Up @@ -7,7 +7,7 @@
<meta name="keywords" content="Perl, Dancer, PerlDancer, framework, web framework, micro framework, web, web application, webapps" />
<meta name="author" content="Alexis Sukrieh" />
<meta name="robots" content="index,follow" />
<meta name="copyright" content="Copyright 2009-2011 Alexis Sukrieh" />
<meta name="copyright" content="Copyright 2009-<% this_year %> Alexis Sukrieh" />
<meta name="google-site-verification" content="XINoghSibCxQxEzULZIDt-a_E0kWTQU7k54qPKwlLMw" />

<link rel="stylesheet" href="/css/style.css" media="screen" />
Expand Down Expand Up @@ -86,7 +86,7 @@
<a href="http://twitter.com/PerlDancer/">On Twitter</a>: <% last_tweet %>
</div>

<div id="copyright">Dancer Perl web framework is copyright © 2009-2014 <a href="http://sukria.net/" rel="external">Alexis Sukrieh</a> - <a href="http://github.com/PerlDancer/Dancer2/" rel="external">Fork on GitHub</a> - This website is <a href="http://github.com/PerlDancer/perldancer-website/" rel="external">free software</a>.</div>
<div id="copyright">Dancer Perl web framework is copyright © 2009-<% this_year %> <a href="http://sukria.net/" rel="external">Alexis Sukrieh</a> - <a href="http://github.com/PerlDancer/Dancer2/" rel="external">Fork on GitHub</a> - This website is <a href="http://github.com/PerlDancer/perldancer-website/" rel="external">free software</a>.</div>

</div>

Expand Down

0 comments on commit 848b9fb

Please sign in to comment.