mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
Show order id in invoice details even if orderUrl is not present
This commit is contained in:
parent
d6f13be95f
commit
b8d509eb12
@ -140,23 +140,28 @@
|
||||
<th class="fw-semibold">Invoice Id</th>
|
||||
<td>@Model.Id</td>
|
||||
</tr>
|
||||
@if (!string.IsNullOrEmpty(Model.TypedMetadata.OrderUrl))
|
||||
@if (!string.IsNullOrEmpty(Model.TypedMetadata.OrderId))
|
||||
{
|
||||
<tr>
|
||||
<th class="fw-semibold">Order Id</th>
|
||||
<td>
|
||||
|
||||
<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>
|
||||
|
||||
@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>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user