@using BTCPayServer.Abstractions.Extensions @using Microsoft.AspNetCore.Mvc.TagHelpers @using BTCPayServer.Components.StoreSelector @using BTCPayServer.Components.MainNav @using BTCPayServer.TagHelpers @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) { }