Browse Source

Thread rankings are now color-blind friendly

Ralfp 12 years ago
parent
commit
0b60fa8e59
1 changed files with 1 additions and 1 deletions
  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>