From: rubenwardy Date: Tue, 14 Jul 2020 23:54:26 +0000 (+0100) Subject: Improve tags page layout and add link to profile X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=27dfbabe2f3ab416eb13f35d8d7116a946ebf6fa;p=cheatdb.git Improve tags page layout and add link to profile --- diff --git a/app/templates/todo/tags.html b/app/templates/todo/tags.html index 04f270a..a61f77f 100644 --- a/app/templates/todo/tags.html +++ b/app/templates/todo/tags.html @@ -6,21 +6,10 @@ {% block content %} - - + {% for package in packages %} @@ -32,6 +21,13 @@ by {{ package.author.display_name }} +
Package Tags
+ {% if package.checkPerm(current_user, "EDIT_PACKAGE") %} + + + + {% endif %} + {% for tag in package.tags %} {{ tag.title }} 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 %}
+

{{ user.display_name }}

@@ -192,6 +193,12 @@ {% endif %}
+{% if current_user == user or (current_user.is_authenticated and current_user.rank.atLeast(current_user.rank.EDITOR)) %} + + View list of tags + +{% endif %}

{{ _("Packages") }}