habit stats

This commit is contained in:
Tyler Renelle
2012-06-20 17:30:21 -04:00
parent fbcfc041e5
commit b6d8c279b9

View File

@@ -16,23 +16,23 @@
</div> </div>
<task:> <task:>
<li data-id={{id}} class="{taskClasses(.type, .completed)}"> <li class="{taskClasses(type, completed)}">
<label> <label>
<!-- Habits --> <!-- Habits -->
{#if equal(.type, 'habit')} {#if equal(type, 'habit')}
{#if up}<a data-direction=up x-bind=click:vote><img src="img/add.png" /></a>{/} {#if up}<a data-id={{id}} data-direction=up x-bind=click:vote><img src="img/add.png" /></a>{/}
{#if down}<a data-direction=up x-bind=click:vote><img src="img/remove.png" /></a>{/} {#if down}<a data-id={{id}} data-direction=down x-bind=click:vote><img src="img/remove.png" /></a>{/}
<!-- Rewards --> <!-- Rewards -->
{else if equal(.type, 'reward')} {else if equal(type, 'reward')}
<a class="vote-down buy-link" href="#">{.price}<img src="img/coin_single_gold.png"/></a> <a class="vote-down buy-link" href="#">{price}<img src="img/coin_single_gold.png"/></a>
<!-- Daily & Todos --> <!-- Daily & Todos -->
{else} {else}
<!--TODO this was part of input below <%= done ? "class='vote-down' checked='checked'" : "class='vote-up'" %>--> <!--TODO this was part of input below <%= done ? "class='vote-down' checked='checked'" : "class='vote-up'" %>-->
<input type="checkbox" checked={.completed} /> <input type="checkbox" checked={completed} />
{/} {/}
<i></i> <i></i>
</label> </label>
<div x-bind=keydown:shortcuts contenteditable>{unescaped .text}</div> <div x-bind=keydown:shortcuts contenteditable>{unescaped text}</div>
<!--<span class="habit-text"><%= name %></span> <!--<span class="habit-text"><%= name %></span>