not_found: allow custom error message

This commit is contained in:
Daniel Friesel 2022-12-26 16:48:11 +01:00
parent f12bec530a
commit 127b40c27a
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -3,7 +3,12 @@
<div class="card caution-color"> <div class="card caution-color">
<div class="card-content white-text"> <div class="card-content white-text">
<span class="card-title">404 Not Found</span> <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> </div>
</div> </div>