habitica/app/assets/javascripts/backbone/templates/habits/habit.jst.ejs

24 lines
745 B
Text
Raw Normal View History

<!-- 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>
<!-- Rewards -->
<% } else if (habit_type==4) { %>
<a class="buy-link" href=#><img src="assets/dollar.png" /></a>
<!-- Daily & Todos -->
<% } else { %>
2012-02-11 19:47:44 +00:00
<input type="checkbox" <%= done ? "class='vote-down' checked='checked'" : "class='vote-up'" %>/>
<% } %>
2012-02-11 17:00:27 +00:00
<span class="habit-text"><%= name %><%= habit_type==4 ? "($"+score+")" : '' %></span>
2012-02-11 20:07:17 +00:00
<div class='habit-meta'>
<a class="edit-link" href="#/<%= id %>/edit">Edit</a>
<% if (notes) { %>
2012-02-09 03:11:43 +00:00
<img src='/assets/comment.png' class="comment" />
<div class='qtip'><%= notes %></div>
<% } %>
2012-02-11 20:07:17 +00:00
</div>