use a bootstrap style 404 error page

agranig/1_0_subfix
Gerhard Jungwirth 12 years ago committed by Andreas Granig
parent 8d781eb898
commit dcd965f312

@ -99,8 +99,7 @@ Standard 404 error page
sub default :Path {
my ( $self, $c ) = @_;
$c->response->body( 'Page not found' );
$c->response->status(404);
$c->detach( '/error_page' );
}
=head2 end
@ -161,6 +160,14 @@ sub ajax_process :Private {
$c->stash(sEcho => $sEcho);
}
sub error_page :Private {
my ($self,$c) = @_;
$c->stash(template => 'error_page.tt');
#$c->response->body( 'Page not found' );
$c->response->status(404);
}
=head1 AUTHOR
Andreas Granig,,,

@ -0,0 +1,37 @@
<div class="row">
<div class="span12">
<div class="error-container">
<h1>Oops!</h1>
<h2>[% c.response.status %] Not found</h2>
<div class="error-details">
Sorry, an error has occured, Requested page not found!
</div> <!-- /error-details -->
<div class="error-actions">
<a href="[% c.uri_for() %]" class="btn btn-large btn-primary">
<i class="icon-chevron-left"></i>
&nbsp;
Back to Dashboard
</a>
<a href="./" class="btn btn-large">
<i class="icon-envelope"></i>
&nbsp;
Contact Support
</a>
</div> <!-- /error-actions -->
</div> <!-- /.error-container -->
</div> <!-- /.span12 -->
</div> <!-- /.row -->
Loading…
Cancel
Save