mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
Cleaner checkbox logic
This commit is contained in:
parent
7e674852bb
commit
9a05e5448d
1 changed files with 2 additions and 6 deletions
|
|
@ -5,17 +5,13 @@
|
|||
<% } else { %>
|
||||
|
||||
<!-- Daily & Todos -->
|
||||
<% if (done) { %>
|
||||
<input class="vote-down" type="checkbox" checked="checked"/>
|
||||
<% } else { %>
|
||||
<input class="vote-up" type="checkbox"/>
|
||||
<% } %>
|
||||
<input type="checkbox" <%= done ? "class='vote-down' checked='checked'" : "class='vote-up'" %>/>
|
||||
|
||||
<% } %>
|
||||
|
||||
<span class="habit-text"><%= name %></span>
|
||||
<div class='edit'>
|
||||
<% if (notes) { %>
|
||||
<!-- TODO how to make this assets-aware? image_tag('comment.png', :class=>'comment') -->
|
||||
<img src='/assets/comment.png' class="comment" />
|
||||
<div class='qtip'><%= notes %></div>
|
||||
<% } %>
|
||||
|
|
|
|||
Loading…
Reference in a new issue