1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00
Teknik/IdentityServer/Views/Error/Exception.cshtml
2018-10-25 22:22:53 -07:00

48 lines
2.0 KiB
Plaintext

@model Teknik.IdentityServer.ViewModels.ErrorViewModel
<script>
var submitErrorReportURL = '@Url.RouteUrl("Error.Action", new { action = "SubmitErrorReport" })';
</script>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="error-template text-center">
<h1>Unexpected Error</h1>
<div class="error-details">
<p>Uh oh! You aren't supposed to be seeing this. Something went horribly wrong.</p>
<div class="error-actions">
@if (Model != null && Model.Exception != null)
{
<div class="btn btn-primary btn-lg" id="submitErrorReport">
<span class="fa fa-bug"></span>
Submit Bug Report
</div>
}
</div>
@if (Model != null && Model.Exception != null)
{
<br />
<div class="show-more" id="view-details">
<button role="button" class="btn btn-default btn-sm view-details-button" data-toggle="collapse" data-target="#errorMsg">Show Details</button>
</div>
<div class="text-left collapse" id="errorMsg">
<br />
<p>
<b>Exception:</b> @Model.Exception.GetFullMessage(true)
<br/>
<b>Source:</b> @Model.Exception.Source
</p>
<div style="overflow: scroll">
<pre>@Model.Exception.StackTrace</pre>
</div>
</div>
}
</div>
</div>
</div>
</div>
</div>
<bundle src="js/error.min.js" append-version="true"></bundle>