diff --git a/BTCPayServer/Controllers/InvoiceController.UI.cs b/BTCPayServer/Controllers/InvoiceController.UI.cs index 4197a4e27..f6e04d78c 100644 --- a/BTCPayServer/Controllers/InvoiceController.UI.cs +++ b/BTCPayServer/Controllers/InvoiceController.UI.cs @@ -368,6 +368,7 @@ namespace BTCPayServer.Controllers Date = Prettify(invoice.InvoiceTime), InvoiceId = invoice.Id, OrderId = invoice.OrderId ?? string.Empty, + RedirectUrl = invoice.RedirectURL ?? string.Empty, AmountCurrency = $"{invoice.ProductInformation.Price.ToString(CultureInfo.InvariantCulture)} {invoice.ProductInformation.Currency}" }); } diff --git a/BTCPayServer/Models/InvoicingModels/InvoicesModel.cs b/BTCPayServer/Models/InvoicingModels/InvoicesModel.cs index 8c21a1b2a..594e28c40 100644 --- a/BTCPayServer/Models/InvoicingModels/InvoicesModel.cs +++ b/BTCPayServer/Models/InvoicingModels/InvoicesModel.cs @@ -39,6 +39,7 @@ namespace BTCPayServer.Models.InvoicingModels } public string OrderId { get; set; } + public string RedirectUrl { get; set; } public string InvoiceId { get; set; diff --git a/BTCPayServer/Views/Invoice/Invoice.cshtml b/BTCPayServer/Views/Invoice/Invoice.cshtml index e30db0836..e95defe5f 100644 --- a/BTCPayServer/Views/Invoice/Invoice.cshtml +++ b/BTCPayServer/Views/Invoice/Invoice.cshtml @@ -10,6 +10,9 @@ text-overflow: ellipsis; white-space: nowrap; } + .money { + text-align: right; + }
@@ -67,7 +70,7 @@ Refund email - @Model.RefundEmail + @Model.RefundEmail Order Id @@ -83,7 +86,7 @@ Redirect Url - @Model.RedirectUrl + @Model.RedirectUrl @@ -98,7 +101,7 @@ Email - @Model.BuyerInformation.BuyerEmail + @Model.BuyerInformation.BuyerEmail Phone @@ -154,10 +157,10 @@ Payment method - Rate - Paid - Due Address + Rate + Paid + Due @@ -165,10 +168,10 @@ { @payment.PaymentMethod - @payment.Rate - @payment.Paid - @payment.Due @payment.Address + @payment.Rate + @payment.Paid + @payment.Due } @@ -184,19 +187,18 @@ Payment method Deposit address Transaction Id - Confirmations - Replaced + Confirmations @foreach(var payment in Model.Payments) { + var replaced = payment.Replaced ? "text-decoration: line-through;" : ""; - @payment.PaymentMethod - @payment.DepositAddress - @payment.TransactionId - @payment.Confirmations - @payment.Replaced + @payment.PaymentMethod + @payment.DepositAddress + @payment.TransactionId + @payment.Confirmations } @@ -211,16 +213,15 @@ Payment method Address - Current @foreach(var address in Model.Addresses) - { + { + var current = address.Current ? "font-weight: bold;" : ""; - @address.PaymentMethod - @address.Destination - @address.Current.ToString() + @address.PaymentMethod + @address.Destination } diff --git a/BTCPayServer/Views/Invoice/ListInvoices.cshtml b/BTCPayServer/Views/Invoice/ListInvoices.cshtml index 783f8c693..35781fd26 100644 --- a/BTCPayServer/Views/Invoice/ListInvoices.cshtml +++ b/BTCPayServer/Views/Invoice/ListInvoices.cshtml @@ -47,8 +47,8 @@ OrderId InvoiceId Status - Amount - Actions + Amount + Actions @@ -56,7 +56,16 @@ { @invoice.Date - @invoice.OrderId + + @if(invoice.RedirectUrl != string.Empty) + { + @invoice.OrderId + } + else + { + @invoice.OrderId + } + @invoice.InvoiceId @if(invoice.Status == "paid") { @@ -73,10 +82,15 @@ } else { - @invoice.Status + @invoice.Status } - @invoice.AmountCurrency - Checkout - Details + @invoice.AmountCurrency + + @if(invoice.Status == "new") + { + Checkout - + }Details + }