Files
btcpayserver/BTCPayServer/Views/Notifications/Index.cshtml

63 lines
2.1 KiB
Plaintext

@model BTCPayServer.Models.NotificationViewModels.IndexViewModel
@{
ViewData["Title"] = "Notifications";
}
@section HeadScripts {
<script src="~/modal/btcpay.js" asp-append-version="true"></script>
}
<section>
<div class="container">
@if (TempData.HasStatusMessage())
{
<div class="row">
<div class="col-lg-12 text-center">
<partial name="_StatusMessage" />
</div>
</div>
}
<div class="row">
<div class="col-lg-12 section-heading">
<h2>Notices</h2>
<hr class="primary">
</div>
</div>
<div class="row">
<div class="col-lg-12">
<table class="table table-sm table-responsive-md">
<thead>
<tr>
<th width="160px">Date</th>
<th>Message</th>
<th width="70px">&nbsp;</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.Items)
{
<tr>
<td>@item.Created.ToBrowserDate()</td>
<td>@item.Body</td>
<td>
@if (!String.IsNullOrEmpty(item.ActionLink))
{
<a href="@item.ActionLink">Action</a>
}
else
{
<span>&nbsp;</span>
}
</td>
</tr>
}
</tbody>
</table>
<nav aria-label="...">
<ul class="pagination">
</ul>
</nav>
</div>
</div>
</div>
</section>