summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-12-26 16:48:11 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-12-26 16:48:11 +0100
commit127b40c27ab07ad15d1876be1baf2170b684d71e (patch)
treeb8db9dc5adb46d053a22101318a662f5660a96cb /templates
parentf12bec530a86c38c707648f0201fda265f78e440 (diff)
not_found: allow custom error message
Diffstat (limited to 'templates')
-rw-r--r--templates/not_found.html.ep7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/not_found.html.ep b/templates/not_found.html.ep
index c2bc09f..411080a 100644
--- a/templates/not_found.html.ep
+++ b/templates/not_found.html.ep
@@ -3,7 +3,12 @@
<div class="card caution-color">
<div class="card-content white-text">
<span class="card-title">404 Not Found</span>
- <p>Diese Seite gibt es hier nicht.</p>
+ % if (my $m = stash('message')) {
+ <p><%= $m %></p>
+ % }
+ % else {
+ <p>Diese Seite gibt es hier nicht.</p>
+ % }
</div>
</div>
</div>