Invoice summary: Fix indentation and heading levels (#3956)

This commit is contained in:
d11n
2022-07-12 05:35:19 +02:00
committed by GitHub
parent 58d68e7e31
commit 79bfffd77b
7 changed files with 33 additions and 27 deletions

View File

@@ -19,10 +19,9 @@
}).Where(model => model != null);
}
@if (offchainPayments.Any())
{
<h3>Off-Chain payments</h3>
<h5>Off-Chain Payments</h5>
<table class="table table-hover">
<thead class="thead-inverse">
<tr>

View File

@@ -31,7 +31,7 @@
@if (onchainPayments.Any())
{
<h3>Monero payments</h3>
<h5>Monero Payments</h5>
<table class="table table-hover">
<thead class="thead-inverse">
<tr>

View File

@@ -31,7 +31,7 @@
@if (onchainPayments.Any())
{
<h3>Zcash payments</h3>
<h5>Zcash Payments</h5>
<table class="table table-hover">
<thead class="thead-inverse">
<tr>

View File

@@ -145,23 +145,23 @@
<tr>
<th class="fw-semibold">Order Id</th>
<td>
@if (!string.IsNullOrEmpty(Model.TypedMetadata.OrderUrl))
{
<a href="@Model.TypedMetadata.OrderUrl" rel="noreferrer noopener" target="_blank">
@if (string.IsNullOrEmpty(Model.TypedMetadata.OrderId))
{
<span>View Order</span>
}
else
{
@Model.TypedMetadata.OrderId
}
</a>
}
else
{
<span>@Model.TypedMetadata.OrderId</span>
}
@if (!string.IsNullOrEmpty(Model.TypedMetadata.OrderUrl))
{
<a href="@Model.TypedMetadata.OrderUrl" rel="noreferrer noopener" target="_blank">
@if (string.IsNullOrEmpty(Model.TypedMetadata.OrderId))
{
<span>View Order</span>
}
else
{
@Model.TypedMetadata.OrderId
}
</a>
}
else
{
<span>@Model.TypedMetadata.OrderId</span>
}
</td>
</tr>
}
@@ -412,12 +412,14 @@
</div>
}
</div>
<h3 class="mb-0">Invoice Summary</h3>
<partial name="ListInvoicesPaymentsPartial" model="(Model, true)"/>
@if (Model.Deliveries.Count != 0)
{
<h3 class="mb-3 mt-4">Webhooks</h3>
<div class="table-responsive-xl">
<h3 class="mb-3 mt-4">Webhooks</h3>
<table class="table table-hover table-responsive-md mb-5">
<thead class="thead-inverse">
<tr>
@@ -491,8 +493,8 @@
@if ((Model.Refunds?.Count ?? 0) > 0)
{
<h3 class="mb-3 mt-4">Refunds</h3>
<div class="table-responsive-xl">
<h3 class="mb-3 mt-4">Refunds</h3>
<table class="table table-hover table-responsive-md mb-5">
<thead class="thead-inverse">
<tr>

View File

@@ -8,6 +8,15 @@
storeIds = string.Empty;
}
@section PageHeadContent
{
<style>
.invoice-payments {
padding-left: var(--btcpay-space-l);
}
</style>
}
@section PageFootContent {
@*Without async, somehow selenium do not manage to click on links in this page*@
<script src="~/modal/btcpay.js" asp-append-version="true" async></script>

View File

@@ -3,7 +3,6 @@
@{ var invoice = Model.Invoice; }
<div class="invoice-payments table-responsive">
<h5 class="mb-0">Invoice Summary</h5>
<table class="table table-hover mt-3 mb-4">
<thead class="thead-inverse">
<tr>

View File

@@ -114,9 +114,6 @@ h2 small .fa-question-circle-o {
}
/* Invoices */
.invoice-payments {
padding: var(--btcpay-space-m) var(--btcpay-space-l);
}
.invoice-details-row {
background: var(--btcpay-bg-tile);
}