@using BTCPayServer.Services @using BTCPayServer.Services.Mails; @model BTCPayServer.Services.PoliciesSettings @inject BTCPayServer.Services.SettingsRepository _SettingsRepository @{ ViewData.SetActivePageAndTitle(ServerNavPages.Policies); } @if (!this.ViewContext.ModelState.IsValid) {
}
@{ 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.
}
@if (ViewBag.UpdateUrlPresent) {
}
@if (!Model.DomainToAppMapping.Any()) { }
@if (Model.DomainToAppMapping.Any()) {
Domain to app mapping
@for (var index = 0; index < Model.DomainToAppMapping.Count; index++) {
}
}
@section Scripts { }