aboutsummaryrefslogtreecommitdiff
path: root/app/templates/users
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-15 00:54:26 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-15 00:54:26 +0100
commit27dfbabe2f3ab416eb13f35d8d7116a946ebf6fa (patch)
treef157447f072fffa1580637e213b7fd2884544926 /app/templates/users
parent15bbc35e656421d415cd6cba8accb83a77e7d84f (diff)
downloadcheatdb-27dfbabe2f3ab416eb13f35d8d7116a946ebf6fa.tar.xz
Improve tags page layout and add link to profile
Diffstat (limited to 'app/templates/users')
-rw-r--r--app/templates/users/profile.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/templates/users/profile.html b/app/templates/users/profile.html
index 4af1c1d..64102b9 100644
--- a/app/templates/users/profile.html
+++ b/app/templates/users/profile.html
@@ -16,6 +16,7 @@
{% endif %}
<div class="row mb-3">
+
<div class="col-sm-6">
<div class="card">
<h2 class="card-header">{{ user.display_name }}</h2>
@@ -192,6 +193,12 @@
{% endif %}
</div>
+{% if current_user == user or (current_user.is_authenticated and current_user.rank.atLeast(current_user.rank.EDITOR)) %}
+<a class="float-right btn btn-sm btn-primary"
+ href="{{ url_for('todo.tags', author=user.username) }}">
+ View list of tags
+</a>
+{% endif %}
<h2 class="my-3">{{ _("Packages") }}</h2>