btcpayserver/BTCPayServer/Views/UILightningLikePayout/LightningPayoutResult.cshtml
d11n ba0e46b465
Improve payouts UI (#3792)
* Improve payouts UI

* Display units

* Update badges

* Update badge background
2022-06-02 11:03:06 +02:00

22 lines
750 B
Plaintext

@using BTCPayServer.Lightning
@model System.Collections.Generic.List<BTCPayServer.Data.Payouts.LightningLike.UILightningLikePayoutController.ResultVM>
@{
Layout = "_Layout";
ViewData["Title"] = "Lightning Payout Result";
}
<h2 class="mt-1 mb-4">@ViewData["Title"]</h2>
@foreach (var item in Model)
{
<div class="alert alert-@(item.Result == PayResult.Ok ? "success" : "danger") mb-3" role="alert">
<h5 class="alert-heading">
@(item.Result == PayResult.Ok ? "Sent" : "Failed")
@if (!string.IsNullOrEmpty(item.Message))
{
<span>- @item.Message</span>
}
</h5>
<div class="text-break me-3" title="@item.Destination">@item.Destination</div>
</div>
}