2021-10-18 05:37:59 +02:00
|
|
|
@using BTCPayServer.Lightning
|
|
|
|
@model System.Collections.Generic.List<BTCPayServer.Data.Payouts.LightningLike.LightningLikePayoutController.ResultVM>
|
|
|
|
@{
|
|
|
|
Layout = "_Layout";
|
2021-11-26 07:02:30 +01:00
|
|
|
ViewData["Title"] = "Lightning Payout Result";
|
2021-10-18 05:37:59 +02:00
|
|
|
}
|
|
|
|
<section>
|
|
|
|
<div class="container">
|
|
|
|
<h2 class="mb-4">@ViewData["Title"]</h2>
|
2021-11-26 07:02:30 +01:00
|
|
|
@foreach (var item in Model)
|
|
|
|
{
|
|
|
|
<div class="alert alert-@(item.Result == PayResult.Ok ? "success" : "danger") d-flex justify-content-between align-items-center mb-3" role="alert">
|
|
|
|
@if (item.Result == PayResult.Ok)
|
|
|
|
{
|
|
|
|
<div class="text-break me-3" title="@item.Destination">@item.Destination</div>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<div class="text-break me-3" title="@item.Destination">@item.Destination: @item.Message (@item.Result)</div>
|
|
|
|
}
|
|
|
|
<span class="badge fs-5">@(item.Result == PayResult.Ok ? "Sent" : "Failed")</span>
|
2021-10-18 05:37:59 +02:00
|
|
|
</div>
|
2021-11-26 07:02:30 +01:00
|
|
|
}
|
2021-10-18 05:37:59 +02:00
|
|
|
</div>
|
|
|
|
</section>
|