aboutsummaryrefslogtreecommitdiff
path: root/app/templates/base.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-03-20 19:07:20 +0000
committerrubenwardy <rw@rubenwardy.com>2018-03-21 16:41:22 +0000
commit32ac60256cd24ec75074cb7add6c47ae49a9e78a (patch)
treed8a9d790d7a59850b0148f9b93db6844a222f803 /app/templates/base.html
parentbbb46ce19a2a83a6a6e547cea2613a3419534bf5 (diff)
downloadcheatdb-32ac60256cd24ec75074cb7add6c47ae49a9e78a.tar.xz
Add redirect to full user URL
Diffstat (limited to 'app/templates/base.html')
-rw-r--r--app/templates/base.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/templates/base.html b/app/templates/base.html
index 6e8c372..687d718 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -37,7 +37,7 @@
</ul>
<ul class="nav navbar-nav navbar-right">
{% if current_user.is_authenticated %}
- <li><a href="{{ url_for('user_profile_page') }}">{{ current_user.first_name or current_user.username }}</a></li>
+ <li><a href="{{ url_for('user_profile_page', username=current_user.username) }}">{{ current_user.display_name }}</a></li>
<li><a href="{{ url_for('user.logout') }}">Sign out</a></li>
{% else %}
<li><a href="{{ url_for('user.login') }}">Sign in</a></li>