mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +01:00
Hide review vote counts when 0
This commit is contained in:
parent
fab814c46f
commit
86e1f57198
@ -6,12 +6,16 @@
|
|||||||
<button class="btn {% if is_positive == true %}btn-primary{% else %}btn-secondary{% endif %}" name="is_positive" value="yes">
|
<button class="btn {% if is_positive == true %}btn-primary{% else %}btn-secondary{% endif %}" name="is_positive" value="yes">
|
||||||
<i class="fas fa-thumbs-up mr-1"></i>
|
<i class="fas fa-thumbs-up mr-1"></i>
|
||||||
{{ _("Helpful") }}
|
{{ _("Helpful") }}
|
||||||
<span class="badge badge-light ml-1">{{ positive }}</span>
|
{% if positive > 0 %}
|
||||||
|
<span class="badge badge-light ml-1">{{ positive }}</span>
|
||||||
|
{% endif %}
|
||||||
</button>
|
</button>
|
||||||
<button class="btn {% if is_positive == false %}btn-primary{% else %}btn-secondary{% endif %}" name="is_positive" value="no">
|
<button class="btn {% if is_positive == false %}btn-primary{% else %}btn-secondary{% endif %}" name="is_positive" value="no">
|
||||||
<i class="fas fa-thumbs-down mr-1"></i>
|
<i class="fas fa-thumbs-down mr-1"></i>
|
||||||
{{ _("Unhelpful") }}
|
{{ _("Unhelpful") }}
|
||||||
<span class="badge badge-light ml-1">{{ negative }}</span>
|
{% if negative > 0 %}
|
||||||
|
<span class="badge badge-light ml-1">{{ negative }}</span>
|
||||||
|
{% endif %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user