mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-12 19:02:01 +01:00
Shortening destination in receipt
This commit is contained in:
parent
12cdc0c0e7
commit
352acd484c
1 changed files with 13 additions and 1 deletions
|
@ -174,7 +174,19 @@
|
|||
{
|
||||
<tr>
|
||||
<td class="text-nowrap text-secondary">Destination</td>
|
||||
<td class="text-break">@payment.Destination</td>
|
||||
<td class="text-break">
|
||||
@if (payment.Destination.Length > 69)
|
||||
{
|
||||
<span>
|
||||
<span>@payment.Destination.Substring(0, 30)</span>
|
||||
<span>...</span>
|
||||
<span>@payment.Destination.Substring(payment.Destination.Length-30, 30)</span>
|
||||
</span>
|
||||
} else
|
||||
{
|
||||
@payment.Destination
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(payment.PaymentProof))
|
||||
|
|
Loading…
Add table
Reference in a new issue