diff options
| author | Emma Terzioglu <emreterzioglu49@gmail.com> | 2026-03-14 21:16:35 -0700 |
|---|---|---|
| committer | Emma Terzioglu <emreterzioglu49@gmail.com> | 2026-03-14 21:16:35 -0700 |
| commit | 4a998d03ebca44414d093dfba789986c0307f9fd (patch) | |
| tree | 1ad3da5bf35bb0d10f3a6b3ffb3af660ec6a2576 /src/templates | |
| parent | 9e094bebec1e2a7a319bdcac05f745292197a59a (diff) | |
add switch to disable admin control panel
Diffstat (limited to 'src/templates')
| -rw-r--r-- | src/templates/base.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates/base.html b/src/templates/base.html index 935ab5e..ff1f3c6 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -2,7 +2,7 @@ <a class="label" {{ "active" if label_active(path) else "" }} href="{{ path }}">{{ name or path }}</a> {%- endmacro %} -{% set adminmode = request.path.startswith("/admin") %} +{% set adminmode = request.path.startswith("/admin") and config["admin_enabled"] and request.path != "/admin/login" %} <!DOCTYPE html> <html> |
