mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
0545f6b74d
close #1905
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
@model BTCPayServer.Models.ServerViewModels.LogsViewModel
|
|
@{
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Logs);
|
|
}
|
|
|
|
<partial name="_StatusMessage" />
|
|
|
|
<ul class="list-unstyled">
|
|
@foreach (var file in Model.LogFiles)
|
|
{
|
|
<li>
|
|
<a asp-action="LogsView" asp-route-file="@file.Name">@file.Name</a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
|
|
<nav aria-label="..." class="w-100">
|
|
<ul class="pagination float-left">
|
|
<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>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
@if (!string.IsNullOrEmpty(Model.Log))
|
|
{
|
|
<br>
|
|
<br>
|
|
<br>
|
|
|
|
<pre>
|
|
@Model.Log
|
|
</pre>
|
|
}
|
|
|
|
|
|
@section Scripts {
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
}
|