1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-26 17:43:29 +02:00

Add exception template

And fix not_found rendering
This commit is contained in:
Daniel Berteaud 2015-02-01 21:47:10 +01:00
parent b5957f627b
commit 79814f9ce5
4 changed files with 11 additions and 8 deletions

View File

@ -326,9 +326,8 @@ our %Lexicon = (
"ABOUT_THANKS" => "VROOM uses the following components, so, thanks to their respective authors :-)",
"ABOUT_MUSICS" => "Also thanks to the authors of songs used",
"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;

View File

@ -358,8 +358,8 @@ our %Lexicon = (
"ABOUT_THANKS" => "VROOM utilise les composants suivants, merci donc aux auteurs respectifs :-)",
"ABOUT_MUSICS" => "Merci également aux auteurs des morceaux de musique utilisés",
"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;

View File

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

View File

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