- Introduced helpers.LoadTemplateFiles() for consistent layout + topbar rendering - Replaced repeated template.ParseFiles() calls across handlers - Created generic RenderError(w, r, statusCode) helper - Replaced old Render403 with flexible RenderError - Updated AdminOnly middleware to render 403 errors with context - Added 500.html template for graceful panic fallback - Prepared structure for future error codes (404, 429, etc.)
7 lines
295 B
HTML
7 lines
295 B
HTML
{{ define "content" }}
|
|
<div class="container py-5 text-center">
|
|
<h1 class="text-danger">🚫 Too Many Requests</h1>
|
|
<p>Whoa there! You're making requests too quickly. Please slow down and try again in a moment.</p>
|
|
<a href="/" class="btn btn-primary mt-3">Back to home</a>
|
|
</div>
|
|
{{ end }} |