diff --git a/app/templates/base.html b/app/templates/base.html index ead3a4f..1d232f2 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -72,7 +72,7 @@ Profile {% if current_user.canAccessTodoList() %} diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html index f0f7ab0..d81d461 100644 --- a/app/templates/users/user_profile_page.html +++ b/app/templates/users/user_profile_page.html @@ -128,18 +128,22 @@ {% from "macros/packagegridtile.html" import render_pkggrid %} {{ render_pkggrid(packages, show_author=False) }} -{% if topics_to_add %} +{% if current_user == user or (current_user.is_authenticated and current_user.rank.atLeast(UserRank.EDITOR)) %}
- -

Unadded Packages

+ +

Unadded topics

-

- List of your forum topics which do not have a matching package. - Topics with a strikethrough have been marked as discarded. -

+ {% if topics_to_add %} +

+ List of your forum topics which do not have a matching package. + Topics with a strikethrough have been marked as discarded. +

- {% from "macros/topics.html" import render_topics_table %} - {{ render_topics_table(topics_to_add, show_author=False, show_discard=True, current_user=current_user) }} + {% from "macros/topics.html" import render_topics_table %} + {{ render_topics_table(topics_to_add, show_author=False, show_discard=True, current_user=current_user) }} + {% else %} +

Congrats! You don't have any topics which aren't on CDB.

+ {% endif %}
{% endif %}