- 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.)
15 lines
508 B
HTML
15 lines
508 B
HTML
{{ define "content" }}
|
|
<div class="container py-5 text-center">
|
|
<h1 class="display-4 text-danger">500 - Server Error</h1>
|
|
<p class="lead">Something went wrong on our end. We're working to fix it.</p>
|
|
|
|
<div class="mt-4">
|
|
<i class="bi bi-exclamation-triangle-fill text-warning" style="font-size: 3rem;"></i>
|
|
</div>
|
|
|
|
<p class="mt-4 text-muted">Please try again later or contact support if the issue persists.</p>
|
|
|
|
<a href="/" class="btn btn-primary mt-3">Return to Homepage</a>
|
|
</div>
|
|
{{ end }}
|