Files
btcpayserver/BTCPayServer/Views/UIManage/GenerateRecoveryCodes.cshtml
Dennis Reimann a9fbba5825 UI: Fix and unify localizer usage for page titles
Issue was caused by duplicate translation through a combination of `StringLocalizer` and `text-translate="true"` usage. Fixes #6622.
2025-03-11 10:54:17 +01:00

31 lines
1.0 KiB
Plaintext

@model GenerateRecoveryCodesViewModel
@{
ViewData.SetActivePage(ManageNavPages.TwoFactorAuthentication, StringLocalizer["Recovery codes"]);
}
<h2 class="mb-2 mb-lg-3">@ViewData["Title"]</h2>
<partial name="_StatusMessage" />
<div class="alert alert-warning" role="alert">
<h5>
<vc:icon symbol="warning" />
<span text-translate="true">Put these codes in a safe place</span>
</h5>
<p class="mb-0" text-translate="true">
If you lose your device and don't have the recovery codes you will lose access to your account.
</p>
</div>
<div class="row">
<div class="col-md-12">
@for(var row = 0; row < Model.RecoveryCodes.Length; row += 2)
{
<code>@Model.RecoveryCodes[row]</code><text>&nbsp;</text><code>@Model.RecoveryCodes[row + 1]</code><br />
}
</div>
</div>
<div class="row mt-4">
<div class="col-md-12">
<a asp-action="TwoFactorAuthentication" class="btn btn-primary" text-translate="true">I wrote down my recovery codes</a>
</div>
</div>