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

Thread rankings are now color-blind friendly

Ralfp 12 лет назад
Родитель
Сommit
0b60fa8e59
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      templates/cranefly/threads/list.html

+ 1 - 1
templates/cranefly/threads/list.html

@@ -124,7 +124,7 @@
           </td>
           <td>
             <div class="thread-rating{% if (thread.upvotes-thread.downvotes) > 0 %} thread-rating-positive{% elif (thread.upvotes-thread.downvotes) < 0 %} thread-rating-negative{% endif %}">
-              {{ (thread.upvotes-thread.downvotes)|abs|intcomma }}
+              {% if (thread.upvotes-thread.downvotes) > 0 %}+{% elif (thread.upvotes-thread.downvotes) < 0 %}-{% endif %}{{ (thread.upvotes-thread.downvotes)|abs|intcomma }}
             </div>
           </td>
           <td>