diff --git a/BTCPayServer/Views/Shared/_Layout.cshtml b/BTCPayServer/Views/Shared/_Layout.cshtml index da82a5ca9..1f44efda8 100644 --- a/BTCPayServer/Views/Shared/_Layout.cshtml +++ b/BTCPayServer/Views/Shared/_Layout.cshtml @@ -18,6 +18,20 @@ var theme = await SettingsRepository.GetTheme(); } +@functions { + // The .NET function for inserting classes requires this to be async + private async Task Logo(string classes = "") + { + + + @if (Env.NetworkType != NBitcoin.ChainName.Mainnet) + { + @Env.NetworkType.ToString() + } + + } +} + @@ -34,28 +48,25 @@ }