@using BTCPayServer.Abstractions.Extensions @using BTCPayServer.Components.StoreSelector @using BTCPayServer.Components.MainNav @inject BTCPayServer.Services.BTCPayServerEnvironment _env @inject SignInManager _signInManager @inject UserManager _userManager @inject LinkGenerator _linkGenerator @inject BTCPayServer.Services.PoliciesSettings PoliciesSettings @{ var notificationsReturnUrl = Context.Request.GetCurrentPathWithQueryString(); var notificationDisabled = PoliciesSettings.DisableInstantNotifications; if (!notificationDisabled) { var user = await _userManager.GetUserAsync(User); notificationDisabled = user?.DisabledNotifications == "all"; } } @await RenderSectionAsync("PageHeadContent", false)
@if (_env.Context.Request.Host.ToString() != _env.ExpectedHost || _env.Context.Request.Scheme != _env.ExpectedProtocol) { } @if (!_env.IsSecure) { }
@RenderBody()
@await RenderSectionAsync("PageFootContent", false) @if (!notificationDisabled) { }