Просмотр исходного кода

Don't display zero if thread is new and has no replies

Rafał Pitoń 10 лет назад
Родитель
Сommit
cfee218928
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      misago/templates/misago/threads/base.html

+ 2 - 0
misago/templates/misago/threads/base.html

@@ -72,7 +72,9 @@
               <div class="thread-replies new-replies">
               <div class="thread-replies new-replies">
                 <span class="label label-success tooltip-top" title="{% blocktrans trimmed with replies=thread.replies|intcomma count counter=thread.replies %}New thread with {{ replies }} reply{% plural %}New thread with {{ replies }} replies{% endblocktrans %}">
                 <span class="label label-success tooltip-top" title="{% blocktrans trimmed with replies=thread.replies|intcomma count counter=thread.replies %}New thread with {{ replies }} reply{% plural %}New thread with {{ replies }} replies{% endblocktrans %}">
                   <span class="fa fa-plus-circle fa-fw"></span>
                   <span class="fa fa-plus-circle fa-fw"></span>
+                  {% if thread.replies > 0 %}
                   {{ thread.replies|intcomma }}
                   {{ thread.replies|intcomma }}
+                  {% endif %}
                 </span>
                 </span>
               </div>
               </div>
               {% else %}
               {% else %}