Files
lucioandClaude Fable 5 fa78bb02d4 Fix Edit Location 404 and add styled 404 page
The folder view's Edit Location/Edit Folder links pointed to GET
/admin/locations/edit/{id}, which only existed as a POST route and
fell through to the public wildcard. Add a GET route that opens the
edit form on the Locations page.

All not-found responses now render a styled 404 page with a Back to
Home button and an automatic redirect to the homepage.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-06-10 22:30:44 -07:00

27 lines
852 B
HTML

{{define "title"}}{{T "notfound.title"}}{{end}}
{{define "content"}}
<div class="notfound-container">
<div class="notfound-code">404</div>
<h1 class="notfound-heading">{{T "notfound.heading"}}</h1>
<p class="notfound-message">{{T "notfound.message"}}</p>
<a href="/" class="btn btn-primary">{{T "notfound.go_home"}}</a>
<p class="notfound-countdown">{{T "notfound.redirecting"}} <span id="notfound-seconds">8</span>s</p>
</div>
<script>
(function () {
let seconds = 8;
const el = document.getElementById("notfound-seconds");
const timer = setInterval(() => {
seconds--;
if (el) el.textContent = seconds;
if (seconds <= 0) {
clearInterval(timer);
window.location.href = "/";
}
}, 1000);
})();
</script>
{{end}}