diff --git a/BTCPayServer/Components/StoreSelector/Default.cshtml b/BTCPayServer/Components/StoreSelector/Default.cshtml index 88313dfba..f2701ae54 100644 --- a/BTCPayServer/Components/StoreSelector/Default.cshtml +++ b/BTCPayServer/Components/StoreSelector/Default.cshtml @@ -15,7 +15,8 @@ @if (Env.NetworkType != NBitcoin.ChainName.Mainnet) { var type = Env.NetworkType.ToString(); - @type.Replace("Testnet", "TN").Replace("Regtest", "RT") + var displayType = type.Replace("Testnet", "TN").Replace("Regtest", "RT").Replace("Signet", "SN"); + @displayType } } private static string StoreName(string title) @@ -38,7 +39,7 @@ else }
- @if (Model.Options.Count > 0) + @if (Model.Options.Any()) { diff --git a/BTCPayServer/Views/UIAccount/Lockout.cshtml b/BTCPayServer/Views/UIAccount/Lockout.cshtml index 442a06b01..28584fe8f 100644 --- a/BTCPayServer/Views/UIAccount/Lockout.cshtml +++ b/BTCPayServer/Views/UIAccount/Lockout.cshtml @@ -5,23 +5,15 @@ Layout = "_LayoutSignedOut"; } -
-
-

@ViewData["Title"]

-
-
-
- @if (DateTimeOffset.MaxValue - Model.Value < TimeSpan.FromSeconds(1)) - { -

Your account has been disabled. Please contact server administrator.

- } - else if(Model is null) - { -

This account has been locked out because of multiple invalid login attempts. Please try again later.

- } - else - { -

This account has been locked out. Please try again @Model.Value.ToTimeAgo().

- } -
-
+@if (Model is null) +{ +

This account has been locked out because of multiple invalid login attempts. Please try again later.

+} +else if (DateTimeOffset.MaxValue - Model.Value < TimeSpan.FromSeconds(1)) +{ +

Your account has been disabled. Please contact server administrator.

+} +else +{ +

This account has been locked out. Please try again @Model.Value.ToBrowserDate(ViewsRazor.DateDisplayFormat.Relative).

+} diff --git a/BTCPayServer/Views/UIServer/ListPlugins.cshtml b/BTCPayServer/Views/UIServer/ListPlugins.cshtml index a633f3689..a61dc61f7 100644 --- a/BTCPayServer/Views/UIServer/ListPlugins.cshtml +++ b/BTCPayServer/Views/UIServer/ListPlugins.cshtml @@ -147,19 +147,19 @@
-
-

@plugin.Name

+
+

@plugin.Name

@if (!string.IsNullOrEmpty(downloadInfo?.Author)) { - + by - @downloadInfo.Author + @downloadInfo.Author }
-
+
@plugin.Version @if (updateAvailable && x != null) @@ -172,8 +172,8 @@ @if (updateAvailable) { - Show current version - Show update information + Show current info + Show update info }
@@ -183,15 +183,17 @@

@plugin.Description

@if (plugin.Dependencies.Any()) { -
Dependencies
+
Dependencies
    @foreach (var dependency in plugin.Dependencies) { -
  • +
  • @dependency @if (!DependencyMet(dependency)) { - + + + }
  • } @@ -205,15 +207,17 @@

    @x.Description

    @if (x.Dependencies.Any()) { -
    Dependencies
    +
    Dependencies
      @foreach (var dependency in x.Dependencies) { -
    • +
    • @dependency @if (!DependencyMet(dependency)) { - + + + }
    • } @@ -224,7 +228,7 @@ @if (plugin != null) { -
      Resources
      +
      Resources
        @if (downloadInfo?.Source is not null) { @@ -308,14 +312,14 @@
        -
        -

        @plugin.Name

        +
        +

        @plugin.Name

        @if (!string.IsNullOrEmpty(plugin.Author)) { - + by - @plugin.Author + @plugin.Author } @@ -334,15 +338,17 @@

        @plugin.Description

        @if (plugin.Dependencies?.Any() is true) { -
        Dependencies
        +
        Dependencies
          @foreach (var dependency in plugin.Dependencies) { -
        • +
        • @dependency @if (!DependencyMet(dependency)) { - + + + }
        • } @@ -351,7 +357,7 @@ @if (plugin != null) { -
          Resources
          +
          Resources
            @if (plugin.Source is not null) {