From 27dfbabe2f3ab416eb13f35d8d7116a946ebf6fa Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 15 Jul 2020 00:54:26 +0100 Subject: [PATCH] Improve tags page layout and add link to profile --- app/templates/todo/tags.html | 20 ++++++++------------ app/templates/users/profile.html | 7 +++++++ 2 files changed, 15 insertions(+), 12 deletions(-) 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") }}

-- 2.44.0