Fix blueprint references from redirects & logged in user references

This commit is contained in:
Xevion
2022-03-26 21:51:21 -05:00
parent fcac137046
commit b4875dbb8b
2 changed files with 3 additions and 3 deletions

View File

@@ -2,8 +2,8 @@
<div class="header-primary">
<span id="logo">runnerspace</span>
<div class="header-login">
{% if logged_in %}
Logged in as <a href="/user/{{ user.username }}" class="username">{{ user.username }}</a>
{% if current_user.is_authenticated %}
Logged in as <a href="/user/{{ current_user.username }}" class="username">{{ current_user.username }}</a>
{% else %}
<a href="/login">Login</a> or <a href="/signup">Sign-up</a>!
{% endif %}

View File

@@ -5,7 +5,7 @@
{% with messages = get_flashed_messages() %}
{% if messages %}
<div class="notification is-danger">
{{ messages[0] }}. Go to <a href="{{ url_for('auth.login') }}">login page</a>.
{{ messages[0] }}. Go to <a href="{{ url_for('main.login') }}">login page</a>.
</div>
{% endif %}
{% endwith %}