Add feature to use Real name on journals
This commit is contained in:
+2
-1
@@ -21,9 +21,10 @@
|
||||
{% if current_user %}
|
||||
<a href="{{ url_for('write') }}">Write</a>
|
||||
{% if current_user.role == 'admin' %}<a href="{{ url_for('admin_users') }}">Accounts</a>{% endif %}
|
||||
<a href="{{ url_for('change_profile') }}">Profile</a>
|
||||
<a href="{{ url_for('change_email') }}">Email</a>
|
||||
<a href="{{ url_for('change_password') }}">Password</a>
|
||||
<span class="user-chip">{{ current_user.username }}</span>
|
||||
<span class="user-chip">{{ current_user.real_name or current_user.username }}</span>
|
||||
<form action="{{ url_for('logout') }}" method="post"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><button class="text-button" type="submit">Log out</button></form>
|
||||
{% else %}
|
||||
<a href="{{ url_for('login') }}">Sign in</a>
|
||||
|
||||
Reference in New Issue
Block a user