Only show up/down voters if present

This commit is contained in:
Tyler Renelle 2012-02-13 16:13:43 -05:00
parent 5852e29e0e
commit c29140e74e

View file

@ -1,7 +1,7 @@
<!-- Habits -->
<% if (habit_type==1) { %>
<a href="#" class="vote-up"><img src="assets/add.png" /></a>
<a href="#" class="vote-down"><img src="assets/remove.png" /></a>
<% if (up) { %> <a href="#" class="vote-up"><img src="assets/add.png" /></a> <% } %>
<% if (down) { %> <a href="#" class="vote-down"><img src="assets/remove.png" /></a> <% } %>
<!-- Rewards -->
<% } else if (habit_type==4) { %>