diff --git a/lib/Lutim.pm b/lib/Lutim.pm index 1abae1a..8b374cb 100644 --- a/lib/Lutim.pm +++ b/lib/Lutim.pm @@ -132,6 +132,11 @@ sub startup { } )->name('index'); + $r->get('/about' => sub { + shift->render(template => 'about'); + } + )->name('about'); + $r->post('/' => sub { my $c = shift; my $upload = $c->param('file'); diff --git a/lib/Lutim/I18N/en.pm b/lib/Lutim/I18N/en.pm index a188e99..e39858c 100644 --- a/lib/Lutim/I18N/en.pm +++ b/lib/Lutim/I18N/en.pm @@ -50,6 +50,7 @@ our %Lexicon = ( '7_days' => '7 days', '30_days' => '30 days', '1_year' => 'One year', + 'back-to-index' => 'Back to homepage' ); 1; diff --git a/lib/Lutim/I18N/fr.pm b/lib/Lutim/I18N/fr.pm index f0e0038..4980e4d 100644 --- a/lib/Lutim/I18N/fr.pm +++ b/lib/Lutim/I18N/fr.pm @@ -50,6 +50,7 @@ our %Lexicon = ( '7_days' => '7 jours', '30_days' => '30 jours', '1_year' => 'Un an', + 'back-to-index' => 'Retour à la page d\'accueil' ); 1; diff --git a/templates/about.html.ep b/templates/about.html.ep new file mode 100644 index 0000000..d3fdbfd --- /dev/null +++ b/templates/about.html.ep @@ -0,0 +1,6 @@ +% # vim:set sw=4 ts=4 sts=4 ft=html.epl expandtab: +% my $scheme = (defined(config('https')) && config('https')) ? 'https' : 'http'; +