mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +00:00
add custom not_found and exception templates
This commit is contained in:
parent
fc4cfade14
commit
b0397e50b4
2 changed files with 37 additions and 0 deletions
27
templates/exception.html.ep
Normal file
27
templates/exception.html.ep
Normal file
|
@ -0,0 +1,27 @@
|
|||
<div class="row">
|
||||
<div class="col s12">
|
||||
<div class="card red darken-4">
|
||||
<div class="card-content white-text">
|
||||
<span class="card-title">500 Internal Server Error</span>
|
||||
<p>Das hätte nicht passieren sollen.</p>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<a href="https://github.com/derf/travelynx/issues" class="waves-effect waves-light btn-flat white-text">
|
||||
<i class="material-icons left">bug_report</i>Bug melden
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<p>Angaben für einen Bug-Report:</p>
|
||||
<p style="font-family: monospace;">
|
||||
Timestamp:
|
||||
%= DateTime->now(time_zone => 'Europe/Berlin')->strftime("%d/%b/%Y:%H:%M:%S %z")
|
||||
<br/><br/>
|
||||
Message:
|
||||
%= (split(qr{\n}, $exception->message))[0]
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
10
templates/not_found.html.ep
Normal file
10
templates/not_found.html.ep
Normal file
|
@ -0,0 +1,10 @@
|
|||
<div class="row">
|
||||
<div class="col s12">
|
||||
<div class="card red darken-4">
|
||||
<div class="card-content white-text">
|
||||
<span class="card-title">404 Not Found</span>
|
||||
<p>Diese Seite gibt es hier nicht.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue