mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-22 10:12:28 +01:00
Change comments button color if there are comments
This commit is contained in:
@ -51,7 +51,8 @@
|
|||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a class="btn btn-secondary" href="{{ url_for('threads.view', id=review.thread.id) }}">
|
<a class="btn {% if review.thread.replies.count() > 1 %} btn-primary {% else %} btn-secondary {% endif %}"
|
||||||
|
href="{{ url_for('threads.view', id=review.thread.id) }}">
|
||||||
<i class="fas fa-comments mr-2"></i>
|
<i class="fas fa-comments mr-2"></i>
|
||||||
{{ _("%(num)d comments", num=review.thread.replies.count() - 1) }}
|
{{ _("%(num)d comments", num=review.thread.replies.count() - 1) }}
|
||||||
</a>
|
</a>
|
||||||
|
Reference in New Issue
Block a user