diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2022-12-26 16:48:11 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2022-12-26 16:48:11 +0100 | 
| commit | 127b40c27ab07ad15d1876be1baf2170b684d71e (patch) | |
| tree | b8db9dc5adb46d053a22101318a662f5660a96cb | |
| parent | f12bec530a86c38c707648f0201fda265f78e440 (diff) | |
not_found: allow custom error message
| -rw-r--r-- | templates/not_found.html.ep | 7 | 
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> | 
