Files
WebServer.Test/WebServer.Test/Views/localhost/_StatusPage.cshtml
Kaveman a92acf0597 Update Test Site
+ Localized everything - No external resources required on the front-end
 + `test123` tested Layouts with relative paths.. issue is, its always relative from root
2024-08-18 03:27:36 -07:00

19 lines
743 B
Plaintext

@using System;
@using RazorLight;
@inherits TemplatePage<WebServer.Models.StatusPageModel>;
@model WebServer.Models.StatusPageModel;
@{
Layout = @"/_Layout.cshtml";
ViewBag.Title = Model.Header;
// Uncomment to show a test exception
//try { throw new Exception("Test Exception thrown in _StatusPage.cshtml"); } catch (Exception ex) { Model.Exception ??= ex; }
}
<div style="font-size: 2em;">@Model.Header</div>
<span>@Model.Details</span>
@if (Model.Exception != null) {
<div style="padding: 5px; border-radius: 5px; background: rgba(0, 0, 0, 0.5); box-shadow: inset rgb(255 255 255 / 20%) 0 0 0 2px; width: auto; max-width: 95%; text-align: left;">
<pre style="margin: 0;">@Model.Exception</pre>
</div>
}