fix(ui): persist SMTP restriction in shared shell

This commit is contained in:
sechmachine
2026-08-15 04:33:37 +07:00
parent ec99586393
commit ddf688a533
10 changed files with 303 additions and 61 deletions
@@ -52,6 +52,11 @@
<div class="page-heading-copy"><h1 class="page-title" th:text="${pageTitle}">Page</h1></div>
<div class="primary-action" th:if="${primaryAction != null}" th:replace="${primaryAction}"></div>
</div>
<div class="alert alert-warning" role="alert" sec:authorize="hasRole('ADMIN')"
th:if="${smtpRestricted}">
<strong>This installation remains restricted until tested SMTP is active.</strong>
<a class="alert-action" th:href="@{/admin/smtp}">Configure SMTP</a>
</div>
<th:block th:replace="${content}"></th:block>
</div>
</div>