2012-02-09 02:36:57 +00:00
|
|
|
<!-- Habits -->
|
|
|
|
|
<% if (habit_type==1) { %>
|
2012-02-11 16:58:42 +00:00
|
|
|
<a href="#" class="vote-up"><img src="assets/add.png" /></a>
|
|
|
|
|
<a href="#" class="vote-down"><img src="assets/remove.png" /></a>
|
2012-02-09 02:36:57 +00:00
|
|
|
<% } else { %>
|
2012-02-09 01:40:43 +00:00
|
|
|
|
2012-02-09 02:36:57 +00:00
|
|
|
<!-- Daily & Todos -->
|
|
|
|
|
<% if (done) { %>
|
2012-02-11 16:58:42 +00:00
|
|
|
<input class="vote-down" type="checkbox" checked="checked"/>
|
2012-02-09 01:40:43 +00:00
|
|
|
<% } else { %>
|
2012-02-11 16:58:42 +00:00
|
|
|
<input class="vote-up" type="checkbox"/>
|
2012-02-09 02:36:57 +00:00
|
|
|
<% } %>
|
|
|
|
|
<% } %>
|
2012-02-11 17:00:27 +00:00
|
|
|
|
2012-02-11 19:16:23 +00:00
|
|
|
<span class="habit-text"><%= name %></span>
|
2012-02-09 02:36:57 +00:00
|
|
|
<div class='edit'>
|
|
|
|
|
<% if (notes) { %>
|
2012-02-09 03:11:43 +00:00
|
|
|
<!-- TODO how to make this assets-aware? image_tag('comment.png', :class=>'comment') -->
|
|
|
|
|
<img src='/assets/comment.png' class="comment" />
|
2012-02-09 02:36:57 +00:00
|
|
|
<div class='qtip'><%= notes %></div>
|
2012-02-09 01:40:43 +00:00
|
|
|
<% } %>
|
2012-02-09 02:36:57 +00:00
|
|
|
<a href="#/<%= id %>/edit">Edit</a>
|
|
|
|
|
</div>
|