2018-11-07 14:29:35 +01:00
|
|
|
@model BTCPayServer.Models.ServerViewModels.LogsViewModel
|
|
|
|
@{
|
2021-04-08 15:32:42 +02:00
|
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Logs, "Logs");
|
2018-11-07 14:29:35 +01:00
|
|
|
}
|
|
|
|
|
2021-04-08 15:32:42 +02:00
|
|
|
<h2 class="mb-4">@ViewData["PageTitle"]</h2>
|
2018-11-07 14:29:35 +01:00
|
|
|
|
2020-09-14 06:45:50 -07:00
|
|
|
<ul class="list-unstyled">
|
|
|
|
@foreach (var file in Model.LogFiles)
|
|
|
|
{
|
2018-11-07 14:29:35 +01:00
|
|
|
<li>
|
2020-09-14 06:45:50 -07:00
|
|
|
<a asp-action="LogsView" asp-route-file="@file.Name">@file.Name</a>
|
|
|
|
</li>
|
|
|
|
}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<nav aria-label="..." class="w-100">
|
2021-05-19 04:39:27 +02:00
|
|
|
<ul class="pagination float-start">
|
2020-09-14 06:45:50 -07:00
|
|
|
<li class="page-item @(Model.LogFileOffset == 0 ? "disabled" : null)">
|
|
|
|
<a class="page-link" asp-action="LogsView" asp-route-offset="@(Model.LogFileOffset - 5)">«</a>
|
|
|
|
</li>
|
|
|
|
<li class="page-item disabled">
|
|
|
|
<span class="page-link">Showing @Model.LogFileOffset - (@(Model.LogFileOffset+Model.LogFiles.Count)) of @Model.LogFileCount</span>
|
|
|
|
</li>
|
|
|
|
<li class="page-item @((Model.LogFileOffset + Model.LogFiles.Count) < Model.LogFileCount ? null : "disabled")">
|
|
|
|
<a class="page-link" asp-action="LogsView" asp-route-offset="@(Model.LogFileOffset + Model.LogFiles.Count)">»</a>
|
2018-11-07 14:29:35 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
2020-09-14 06:45:50 -07:00
|
|
|
</nav>
|
|
|
|
|
|
|
|
@if (!string.IsNullOrEmpty(Model.Log))
|
|
|
|
{
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<pre>
|
2018-11-07 14:29:35 +01:00
|
|
|
@Model.Log
|
|
|
|
</pre>
|
2020-09-14 06:45:50 -07:00
|
|
|
}
|
2018-11-07 14:29:35 +01:00
|
|
|
|
|
|
|
|
2021-05-19 04:39:27 +02:00
|
|
|
@section PageFootContent {
|
2021-04-08 15:32:42 +02:00
|
|
|
<partial name="_ValidationScriptsPartial" />
|
2018-11-07 14:29:35 +01:00
|
|
|
}
|