mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Refactoring: Allow ViewsRazor extension to be used by plugins
Moves the `ViewsRazor` extension into Abstractions, so that it can be used by plugins. Separated out of #2701, prerequisite for the LNbank plugin integration.
This commit is contained in:
committed by
Andrew Camilleri
parent
68595be323
commit
ad8f347989
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using BTCPayServer.Abstractions.Extensions;
|
||||
using BTCPayServer.Services;
|
||||
|
||||
namespace BTCPayServer.Models.ServerViewModels
|
||||
@@ -23,7 +24,7 @@ namespace BTCPayServer.Models.ServerViewModels
|
||||
{
|
||||
if (Settings?.LastUpdated is DateTimeOffset date)
|
||||
{
|
||||
return Views.ViewsRazor.ToTimeAgo(date);
|
||||
return ViewsRazor.ToTimeAgo(date);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user