46 lines
2.0 KiB
Plaintext
46 lines
2.0 KiB
Plaintext
@using APCViewer.Controllers
|
|
@{
|
|
ViewBag.Title = "Background";
|
|
int i = 0;
|
|
string backgroundController = nameof(BackgroundController).Replace("Controller", string.Empty);
|
|
}
|
|
|
|
<div class="jumbotron">
|
|
<h1>YODA - @(ViewBag.IsPrimaryInstance) - @(ViewBag.Profile) - @(ViewBag.URLs) - 013</h1>
|
|
<p class="lead">@(ViewBag.WorkingDirectory)</p>
|
|
<p class="lead">@(ViewBag.Message)</p>
|
|
<h1>@(ViewBag.ExceptionsCount)</h1>
|
|
</div>
|
|
<div>
|
|
<ul>
|
|
<li><a asp-area="" asp-controller="@(backgroundController)" asp-action="@(nameof(BackgroundController.Index))">Background Message</a></li>
|
|
<li><a asp-area="" asp-controller="@(backgroundController)" asp-action="@(nameof(BackgroundController.Index))" asp-route-message_clear="true">Background Message Clear</a></li>
|
|
<li><a asp-area="" asp-controller="@(backgroundController)" asp-action="@(nameof(BackgroundController.Index))" asp-route-exceptions_clear="true">Background Exceptions Clear</a></li>
|
|
<li><a asp-area="" asp-controller="@(backgroundController)" asp-action="@(nameof(BackgroundController.Index))" asp-route-set_is_primary_instance="true">Background Set Is Primary Instance</a></li>
|
|
<li><a asp-area="" asp-controller="@(backgroundController)" asp-action="@(nameof(BackgroundController.Index))" asp-route-set_is_primary_instance="false">Background Clear Primary Instance</a></li>
|
|
</ul>
|
|
</div>
|
|
<p> </p>
|
|
<hr />
|
|
<div>
|
|
<form action="">
|
|
@foreach (Exception exception in ViewBag.Exceptions)
|
|
{
|
|
<p>
|
|
@Html.Raw(string.Concat("<textarea name=\"message_", i, "\" rows='1' cols='400'>", exception.Message, "</textarea>"));
|
|
</p>
|
|
<p>
|
|
@Html.Raw(string.Concat("<textarea name=\"stackTrace_", i, "\" rows='4' cols='400'>", exception.StackTrace, "</textarea>"));
|
|
</p>
|
|
<hr />
|
|
@(i += 1);
|
|
}
|
|
</form>
|
|
</div>
|
|
@section scripts {
|
|
<script>
|
|
$(function () {
|
|
console.log("ready!");
|
|
});
|
|
</script>
|
|
} |