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

Always display at least 1 unread reply in new threads

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

+ 1 - 3
misago/templates/misago/threads/base.html

@@ -72,9 +72,7 @@
               <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="fa fa-plus-circle fa-fw"></span>
-                  {% if thread.replies > 0 %}
-                  {{ thread.replies|intcomma }}
-                  {% endif %}
+                  {{ thread.replies|default:1|intcomma }}
                 </span>
               </div>
               {% else %}