mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
habit stats
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user