mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
* Newlines * Dashboard * Add more translations * Moar * Remove from translated texts * Dictionary controller translations * Batch 1 of controller updates * Batch 2 of controller updates * Component translations * Batch 3 of controller updates * Fixes
17 lines
580 B
Text
17 lines
580 B
Text
@using System.Net
|
|
@using System.Text.RegularExpressions
|
|
@model int?
|
|
@{
|
|
Layout = "_LayoutError";
|
|
ViewData["Title"] = "Generic Error occurred";
|
|
if (Model.HasValue)
|
|
{
|
|
var httpCode = (HttpStatusCode)Model.Value;
|
|
var name = Regex.Replace(httpCode.ToString(), @"(\B[A-Z])", @" $1");
|
|
ViewData["Title"] = $"{(int)httpCode} - {name}";
|
|
}
|
|
}
|
|
|
|
<p class="mt-4">A generic error occurred (HTTP Code: @Model)</p>
|
|
<p text-translate="true">Please consult the server log for more details.</p>
|
|
<a href="/" text-translate="true">Navigate back to home</a>
|