From 9b64d22daf50f7ec9756f7312b614e34081aa4ed Mon Sep 17 00:00:00 2001 From: Deimos Date: Sun, 10 Feb 2019 16:57:11 -0700 Subject: [PATCH] Show Exemplary label at the top of comments Previously, the little "Exemplary" badge was only being shown to people that can view the reasons (generally, the comment author and admins). The only indication to other users that the comment had been labeled as Exemplary was the colored left border. This adds the label to the top for all users, including a count if there are multiple. --- .../tildes/templates/macros/comments.jinja2 | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/tildes/tildes/templates/macros/comments.jinja2 b/tildes/tildes/templates/macros/comments.jinja2 index e36b82d..575fbae 100644 --- a/tildes/tildes/templates/macros/comments.jinja2 +++ b/tildes/tildes/templates/macros/comments.jinja2 @@ -98,18 +98,28 @@ {% endif %} - {% if (request.has_permission("view_exemplary_reasons", comment) - and comment.is_label_active("exemplary")) %} -
- Exemplary - x{{ comment.label_counts["exemplary"] }} - -
+ {% endif %} {% endif %} {% if comment.label_counts and request.has_permission("view_labels", comment) %}