New Year revamp #40

Merged
FrederikBaerentsen merged 31 commits from gregoo/BrickTracker:master into master 2025-01-19 08:19:01 +01:00
Showing only changes of commit d4bce7491a - Show all commits

View File

@ -38,7 +38,7 @@
{% endfor %} {% endfor %}
</ul> </ul>
{% if g.login.is_enabled() %} {% if g.login.is_enabled() %}
{% if current_user.is_authenticated %} {% if g.login.is_authenticated() %}
<a href="{{ url_for('admin.admin', open_logout=true) }}" class="badge text-bg-success text-decoration-none">Authenticated</a> <a href="{{ url_for('admin.admin', open_logout=true) }}" class="badge text-bg-success text-decoration-none">Authenticated</a>
{% else %} {% else %}
<a href="{{ url_for('login.login', next=request.path) }}" class="badge text-bg-secondary text-decoration-none">Read-only</a> <a href="{{ url_for('login.login', next=request.path) }}" class="badge text-bg-secondary text-decoration-none">Read-only</a>