feat(status): restrict status page to admin-only and move to admin menu

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-08 15:10:46 +00:00
parent 17e77fa65a
commit feea051c4f
3 changed files with 141 additions and 19 deletions
+8 -15
View File
@@ -168,18 +168,14 @@
<a href="/admin/backup" role="menuitem" class="flex items-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
<i class="fas fa-database w-4 mr-2 text-green-600" aria-hidden="true"></i> Backup &amp; Restore
</a>
<a href="/status" role="menuitem" class="flex items-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"
{% if request and request.url.path == '/status' %}aria-current="page"{% endif %}>
<i class="fas fa-circle-dot w-4 mr-2 text-gray-500" aria-hidden="true"></i> Status
</a>
</div>
</div>
</div>
<!-- Status (de-emphasised, shown after Admin) -->
<a href="/status"
class="px-2 py-2 rounded-md text-xs font-medium text-gray-400 hover:text-gray-600 hover:bg-gray-100"
title="System Status"
{% if request and request.url.path == '/status' %}aria-current="page"{% endif %}>
<i class="fas fa-circle-dot mr-0.5" aria-hidden="true"></i> Status
</a>
{% endif %}{# end multi_user_enabled / is_logged_in check #}
<!-- Help always visible, for every visitor regardless of auth state -->
@@ -314,16 +310,13 @@
<a href="/admin/backup" class="block px-3 py-3 rounded-md text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50">
<i class="fas fa-database mr-2 text-green-500" aria-hidden="true"></i> Backup &amp; Restore
</a>
<a href="/status" class="block px-3 py-3 rounded-md text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50"
{% if request and request.url.path == '/status' %}aria-current="page"{% endif %}>
<i class="fas fa-circle-dot mr-2 text-gray-400" aria-hidden="true"></i> Status
</a>
</div>
</div>
<!-- Status (de-emphasised) -->
<a href="/status"
class="block px-3 py-3 rounded-md text-sm font-medium text-gray-400 hover:text-gray-600 hover:bg-gray-50"
{% if request and request.url.path == '/status' %}aria-current="page"{% endif %}>
<i class="fas fa-circle-dot mr-1" aria-hidden="true"></i> Status
</a>
{% endif %}{# end multi_user_enabled / is_logged_in check #}
<!-- Help always visible, for every visitor regardless of auth state -->