Initial commit

This commit is contained in:
2026-04-23 21:38:24 -04:00
commit 63e12a9636
1762 changed files with 1672620 additions and 0 deletions
@@ -0,0 +1,72 @@
@{
ViewData["Title"] = "Error";
}
<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card border-danger">
<div class="card-header bg-danger text-white">
<h4 class="mb-0">
<i class="bi bi-exclamation-triangle-fill"></i> An Error Occurred
</h4>
</div>
<div class="card-body">
<h5 class="card-title">We're sorry, something went wrong.</h5>
<p class="card-text">
An unexpected error has occurred while processing your request.
The error has been logged and our team will look into it.
</p>
@if (Context.TraceIdentifier != null)
{
<div class="alert alert-secondary mt-3">
<strong>Request ID:</strong> <code>@Context.TraceIdentifier</code>
<br />
<small class="text-muted">Please provide this ID when contacting support.</small>
</div>
}
<div class="mt-4">
<h6>What you can do:</h6>
<ul>
<li>Try refreshing the page</li>
<li>Go back to the <a asp-controller="Dashboard" asp-action="Index">Dashboard</a></li>
<li>If the problem persists, contact your system administrator</li>
</ul>
</div>
<div class="mt-4">
<a asp-controller="Dashboard" asp-action="Index" class="btn btn-primary">
<i class="bi bi-house-door"></i> Go to Dashboard
</a>
<button onclick="history.back()" class="btn btn-secondary">
<i class="bi bi-arrow-left"></i> Go Back
</button>
</div>
</div>
<div class="card-footer text-muted">
<small>
<i class="bi bi-info-circle"></i>
Errors are logged and monitored. The technical team has been notified.
</small>
</div>
</div>
@if (Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development")
{
var logFileName = $"logs/errors-{DateTime.Now:yyyyMMdd}.txt";
<div class="alert alert-warning mt-3">
<strong><i class="bi bi-code-slash"></i> Development Mode:</strong>
Check the error logs at <code>@logFileName</code> for details.
</div>
}
</div>
</div>
</div>
<style>
.card-header i {
font-size: 1.2em;
}
</style>