@using BTCPayServer.Services @using BTCPayServer.Services.Mails; @model BTCPayServer.Services.PoliciesSettings @inject SettingsRepository _SettingsRepository @inject BTCPayNetworkProvider BTCPayNetworkProvider @{ ViewData.SetActivePage(ServerNavPages.Policies); var networks = BTCPayNetworkProvider.GetAll().ToArray(); }

@ViewData["Title"]

@if (!ViewContext.ModelState.IsValid) {
}

Existing User Settings

New User Settings

@{ var emailSettings = (await _SettingsRepository.GetSettingAsync()) ?? new EmailSettings(); /* The "|| Model.RequiresConfirmedEmail" check is for the case when a user had checked the checkbox without first configuring the e-mail settings so that they can uncheck it. */ var isEmailConfigured = emailSettings.IsComplete() || Model.RequiresConfirmedEmail; } @if (!isEmailConfigured) {
Your email server has not been configured. Please configure it first.
}

Notification Settings

Maintenance Settings

@if (ViewBag.UpdateUrlPresent) {
}

Plugins

@* To handle the multiple submit buttons on this page: Give this button a specific order to put it last, but keep it first in the markup *@

Customization Settings

@if (!Model.DomainToAppMapping.Any()) { }
@if (Model.DomainToAppMapping.Any()) {
Domain to app mapping
@for (var index = 0; index < Model.DomainToAppMapping.Count; index++) {
}
}

Block Explorers

@for (var i = 0; i < networks.Count(); i++) { var network = networks.ElementAt(i); var existingOverride = Model.BlockExplorerLinks?.SingleOrDefault(tuple => tuple.CryptoCode.Equals(network.CryptoCode, StringComparison.InvariantCultureIgnoreCase)); var linkValue = existingOverride?.Link ?? network.BlockExplorerLinkDefault; if (Model.BlockExplorerLinks.Count < i + 1) { Model.BlockExplorerLinks.Add(new PoliciesSettings.BlockExplorerOverrideItem { CryptoCode = network.CryptoCode, Link = network.BlockExplorerLinkDefault }); }
}
@section PageFootContent { }