Browse Source

Hide Exemplary "badge" from regular viewers

Lately there have been multiple "exemplary fights", where people are
using the Exemplary label to highlight and boost comments that they
especially agree with, even if the comments themselves aren't especially
good.

I think the prominence of the Exemplary badge and the count of how many
Exemplary labels a comment has received are contributing to this. This
was only made visible somewhat recently (9b64d22d), so I'm going to try
removing it again now. There should probably be a page added to Docs
explaining the different "stripe" colors, since the Exemplary stripe is
now unexplained and not obvious.
merge-requests/68/head
Deimos 6 years ago
parent
commit
6dbaf6a972
  1. 13
      tildes/tildes/templates/macros/comments.jinja2

13
tildes/tildes/templates/macros/comments.jinja2

@ -98,8 +98,7 @@
</div> </div>
{% endif %} {% endif %}
{% if comment.is_label_active("exemplary") %}
{% if request.has_permission("view_exemplary_reasons", comment) %}
{% if comment.is_label_active("exemplary") and request.has_permission("view_exemplary_reasons", comment) %}
<details class="comment-exemplary-reasons"> <details class="comment-exemplary-reasons">
<summary><span class="label label-comment label-comment-exemplary">Exemplary</span> <summary><span class="label label-comment label-comment-exemplary">Exemplary</span>
<span class="comment-label-count">x{{ comment.label_counts["exemplary"] }}</span> <span class="comment-label-count">x{{ comment.label_counts["exemplary"] }}</span>
@ -110,16 +109,6 @@
{% endfor %} {% endfor %}
</ul> </ul>
</details> </details>
{% else %}
<ul class="comment-labels">
<li>
<span class="label label-comment label-comment-exemplary">Exemplary</span>
{% if comment.label_counts["exemplary"] > 1 %}
<span class="comment-label-count">x{{ comment.label_counts["exemplary"] }}</span>
{% endif %}
</li>
</ul>
{% endif %}
{% endif %} {% endif %}
{% if comment.label_counts and request.has_permission("view_labels", comment) %} {% if comment.label_counts and request.has_permission("view_labels", comment) %}

Loading…
Cancel
Save