2024-07-25 22:46:02 +09:00
|
|
|
@model BTCPayServer.Models.ServerViewModels.LogsViewModel
|
2018-11-07 14:29:35 +01:00
|
|
|
@{
|
2024-10-25 15:48:53 +02:00
|
|
|
ViewData.SetActivePage(ServerNavPages.Logs, StringLocalizer["Logs"]);
|
2018-11-07 14:29:35 +01:00
|
|
|
}
|
|
|
|
|
2024-06-19 15:23:10 +02:00
|
|
|
<div class="sticky-header">
|
2024-07-25 22:46:02 +09:00
|
|
|
<h2 class="my-1" text-translate="true">@ViewData["Title"]</h2>
|
2024-06-19 15:23:10 +02:00
|
|
|
</div>
|
|
|
|
<partial name="_StatusMessage" />
|
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>
|
2024-10-27 11:12:39 +01:00
|
|
|
<a asp-action="LogsView" asp-route-file="@file.Name" asp-route-offset="@Model.LogFileOffset">@file.Name</a>
|
2024-10-27 13:43:47 +01:00
|
|
|
<a asp-action="LogsView" asp-route-file="@file.Name" asp-route-offset="@Model.LogFileOffset" asp-route-download="true" class="mx-2">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">
|
|
|
|
<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/>
|
|
|
|
<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"/>
|
|
|
|
</svg>
|
|
|
|
</a>
|
2020-09-14 06:45:50 -07:00
|
|
|
</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">
|
2024-10-25 15:48:53 +02:00
|
|
|
<span class="page-link">@StringLocalizer["Showing {0} of {1}", Model.LogFileOffset - (Model.LogFileOffset + Model.LogFiles.Count), Model.LogFileCount]</span>
|
2020-09-14 06:45:50 -07:00
|
|
|
</li>
|
2024-10-25 15:48:53 +02:00
|
|
|
<li class="page-item @(Model.LogFileOffset + Model.LogFiles.Count < Model.LogFileCount ? null : "disabled")">
|
2020-09-14 06:45:50 -07:00
|
|
|
<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
|
|
|
}
|