Fix footer crash (no Jinja date filter), add admin/backup nav links and credit

This commit is contained in:
jessikitty committed 2026-09-24 15:47:05 +10:00
1 parent fb992e31f4
commit 5e34840465
1 file changed
+9 -1
+9 -1
View File
@@ -80,6 +80,11 @@
</a> </a>
<ul class="dropdown-menu dropdown-menu-end"> <ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item" href="{{ url_for('auth.profile') }}"><i class="bi bi-person"></i> Profile</a></li> <li><a class="dropdown-item" href="{{ url_for('auth.profile') }}"><i class="bi bi-person"></i> Profile</a></li>
{% if current_user.is_admin %}
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="{{ url_for('admin.dashboard') }}"><i class="bi bi-shield-lock"></i> Admin</a></li>
<li><a class="dropdown-item" href="{{ url_for('backup.index') }}"><i class="bi bi-archive"></i> Backup &amp; Restore</a></li>
{% endif %}
<li><hr class="dropdown-divider"></li> <li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="{{ url_for('auth.logout') }}"><i class="bi bi-box-arrow-right"></i> Logout</a></li> <li><a class="dropdown-item" href="{{ url_for('auth.logout') }}"><i class="bi bi-box-arrow-right"></i> Logout</a></li>
</ul> </ul>
@@ -139,13 +144,16 @@
Organize, manage, and access all your LEGO instruction manuals Organize, manage, and access all your LEGO instruction manuals
</p> </p>
<p class="mb-0 small"> <p class="mb-0 small">
&copy; 2024-{{ "now"|date("Y") }} LEGO Instructions Manager &copy; 2024-{{ current_year }} LEGO Instructions Manager
{% if brickset_available %} {% if brickset_available %}
<span class="badge bg-success ms-2"> <span class="badge bg-success ms-2">
<i class="bi bi-check-circle"></i> Brickset Connected <i class="bi bi-check-circle"></i> Brickset Connected
</span> </span>
{% endif %} {% endif %}
</p> </p>
<p class="mb-0 small text-muted">
Created by: Jess Rogerson (yelling commands at Claude.AI)
</p>
</div> </div>
</footer> </footer>