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:
parent
b5957f627b
commit
79814f9ce5
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
4
templates/default/exception.html.ep
Normal file
4
templates/default/exception.html.ep
Normal file
|
@ -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 err => 'not_found'
|
||||
%= stash room => ''
|
||||
% stash msg => $self->l('PAGE_NOT_FOUND');
|
||||
% stash err => 'not_found';
|
||||
% stash room => '';
|
||||
%=include 'error'
|
||||
|
|
Loading…
Reference in New Issue
Block a user