mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 01:53:52 +01:00
Renaming method to better communicate function
This commit is contained in:
parent
d7fccae452
commit
4f23fc99a1
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@
|
||||||
@foreach(var invoice in Model.Invoices)
|
@foreach(var invoice in Model.Invoices)
|
||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td>@invoice.Date.ToBrowserAgo()</td>
|
<td>@invoice.Date.ToTimeAgo()</td>
|
||||||
<td>
|
<td>
|
||||||
@if(invoice.RedirectUrl != string.Empty)
|
@if(invoice.RedirectUrl != string.Empty)
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,7 +31,7 @@ namespace BTCPayServer.Views
|
||||||
return new HtmlString($"<span class='localizeDate'>{hello}</span>");
|
return new HtmlString($"<span class='localizeDate'>{hello}</span>");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string ToBrowserAgo(this DateTimeOffset date)
|
public static string ToTimeAgo(this DateTimeOffset date)
|
||||||
{
|
{
|
||||||
var formatted = (DateTimeOffset.UtcNow - date).TimeString() + " ago";
|
var formatted = (DateTimeOffset.UtcNow - date).TimeString() + " ago";
|
||||||
return formatted;
|
return formatted;
|
||||||
|
|
Loading…
Add table
Reference in a new issue