Add exception template

And fix not_found rendering
master
Daniel Berteaud 10 years ago
parent b5957f627b
commit 79814f9ce5
  1. 5
      lib/Vroom/I18N/en.pm
  2. 4
      lib/Vroom/I18N/fr.pm
  3. 4
      templates/default/exception.html.ep
  4. 6
      templates/default/not_found.html.ep

@ -326,9 +326,8 @@ our %Lexicon = (
"ABOUT_THANKS" => "VROOM uses the following components, so, thanks to their respective authors :-)", "ABOUT_THANKS" => "VROOM uses the following components, so, thanks to their respective authors :-)",
"ABOUT_MUSICS" => "Also thanks to the authors of songs used", "ABOUT_MUSICS" => "Also thanks to the authors of songs used",
"FROM_AUTHOR" => "from", "FROM_AUTHOR" => "from",
"PAGE_NOT_FOUND" => "This page does not exist" "PAGE_NOT_FOUND" => "This page does not exist",
"SERVER_ERROR" => "Sorry for the inconvinience"
); );
1; 1;

@ -358,8 +358,8 @@ our %Lexicon = (
"ABOUT_THANKS" => "VROOM utilise les composants suivants, merci donc aux auteurs respectifs :-)", "ABOUT_THANKS" => "VROOM utilise les composants suivants, merci donc aux auteurs respectifs :-)",
"ABOUT_MUSICS" => "Merci également aux auteurs des morceaux de musique utilisés", "ABOUT_MUSICS" => "Merci également aux auteurs des morceaux de musique utilisés",
"FROM_AUTHOR" => "de", "FROM_AUTHOR" => "de",
"PAGE_NOT_FOUND" => "Cette page n'existe pas" "PAGE_NOT_FOUND" => "Cette page n'existe pas",
"SERVER_ERROR" => "Veuille nous excuser"
); );
1; 1;

@ -0,0 +1,4 @@
% stash msg => $self->l('SERVER_ERROR');
% stash err => 'server_error';
% stash room => '';
%=include 'error'

@ -1,4 +1,4 @@
%= stash msg => $self->l('PAGE_NOT_FOUND') % stash msg => $self->l('PAGE_NOT_FOUND');
%= stash err => 'not_found' % stash err => 'not_found';
%= stash room => '' % stash room => '';
%=include 'error' %=include 'error'

Loading…
Cancel
Save