btcpayserver/BTCPayServer/Views/UIError/Handle.cshtml
d11n 17f3b4125b
Add option to customize the instance logo (#4258)
* Add option to customize the instance logo


Custom logo for BTCPay instances

* Incorporate SVGUse helper
2022-11-14 22:29:23 +09:00

17 lines
536 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>Please consult the server log for more details.</p>
<a href="/">Navigate back to home</a>