diff options
-rw-r--r-- | app/templates/macros/reviews.html | 4 | ||||
-rw-r--r-- | app/templates/users/profile.html | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/app/templates/macros/reviews.html b/app/templates/macros/reviews.html index ad622da..2c7f293 100644 --- a/app/templates/macros/reviews.html +++ b/app/templates/macros/reviews.html @@ -61,6 +61,10 @@ </div> {% endif %} </li> + {% else %} + <p> + <i>{{ _("No reviews, yet.") }}</i> + </p> {% endfor %} </ul> {% endmacro %} diff --git a/app/templates/users/profile.html b/app/templates/users/profile.html index e237fa9..a75ae02 100644 --- a/app/templates/users/profile.html +++ b/app/templates/users/profile.html @@ -190,6 +190,9 @@ {% endif %} </div> + +<h2 class="my-3">{{ _("Packages") }}</h2> + {% from "macros/packagegridtile.html" import render_pkggrid %} {{ render_pkggrid(packages, show_author=False) }} @@ -200,8 +203,14 @@ </div> {% endif %} + +<h2 class="my-3">{{ _("Reviews") }}</h2> +{% from "macros/reviews.html" import render_reviews %} +{{ render_reviews(user.reviews, current_user, True) }} + + {% if current_user == user or (current_user.is_authenticated and current_user.rank.atLeast(current_user.rank.EDITOR)) %} - <div class="card mt-3"> + <div class="card mt-5"> <a name="unadded-topics"></a> <h2 class="card-header">Unadded topics</h2> |