From 16b9ea3b58177a6d7b62e1ae11ed8d9ecf865496 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Tue, 5 Mar 2013 17:00:44 -0500 Subject: [PATCH] reverting my #553 & html cleanup fixes, merge conflicts from redesign - gotta go through and do these again --- views/app/index.html | 10 +-- views/app/modals.html | 4 +- views/app/rewards.html | 14 +-- views/app/tasks.html | 200 ++++++++++++++++++++--------------------- 4 files changed, 114 insertions(+), 114 deletions(-) diff --git a/views/app/index.html b/views/app/index.html index 359f325817..69ce9f1db5 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -1,11 +1,11 @@ - - - - + + + + @@ -31,7 +31,7 @@
- +
diff --git a/views/app/modals.html b/views/app/modals.html index aa6d010a1d..5b0b26792f 100644 --- a/views/app/modals.html +++ b/views/app/modals.html @@ -17,7 +17,7 @@ - +

Highly discouraged because red tasks provide good incentive to improve (read more). However, this becomes necessary after long bouts of bad habits.

<@footer> {#if lt(_user.balance,1)} @@ -30,7 +30,7 @@ - +

You're out of tokens, which are used to buy pets and mounts.

<@footer> Buy More TokensNot enough tokens diff --git a/views/app/rewards.html b/views/app/rewards.html index 673db54571..e7e1bd29e9 100644 --- a/views/app/rewards.html +++ b/views/app/rewards.html @@ -1,17 +1,17 @@
    - {#each _rewardList as :task}{/} + {#each _rewardList as :task}{/}
{#if _user.flags.itemsEnabled}
    - {#with _view.items.weapon as :item}{/} - {#with _view.items.armor as :item}{/} - {#with _view.items.head as :item}{/} - {#with _view.items.shield as :item}{/} - {#with _view.items.potion as :item}{/} - {#with _view.items.reroll as :item}{/} + {#with _view.items.weapon as :item}{/} + {#with _view.items.armor as :item}{/} + {#with _view.items.head as :item}{/} + {#with _view.items.shield as :item}{/} + {#with _view.items.potion as :item}{/} + {#with _view.items.reroll as :item}{/}
{/} diff --git a/views/app/tasks.html b/views/app/tasks.html index 68f83d0f2f..f0ff20c787 100644 --- a/views/app/tasks.html +++ b/views/app/tasks.html @@ -2,23 +2,23 @@

Habits

- -
    {#each _habitList as :task}{/}
+ +
    {#each _habitList as :task}{/}

Daily

- -
    {#each _dailyList as :task}{/}
+ +
    {#each _dailyList as :task}{/}

Todos

- +
    - {#each _todoList as :task}{/} + {#each _todoList as :task}{/}
Clear Completed @@ -55,120 +55,120 @@
--> {else} - + {/}
- + - {#if equal(_user.flags.petsEnabled,true)} -
+ {#if _user.flags.petsEnabled} +
-
-
- -
- -
- {#with _view.items.pets as :pets} - -
- {#with :pets[0]}{/} - {#with :pets[1]}{/} - {#with :pets[2]}{/} - {#with :pets[3]}{/} -
- -
- {#with :pets[4]}{/} - {#with :pets[5]}{/} - {#with :pets[6]}{/} - {#with :pets[7]}{/} -
- -
- {#with :pets[8]}{/} - {#with :pets[9]}{/} - {#with :pets[10]}{/} - {#with :pets[11]}{/} -
- -
- {#with :pets[12]}{/} - {#with :pets[13]}{/} - {#with :pets[14]}{/} - {#with :pets[15]}{/} -
- -
- {#with :pets[16]}{/} -
- - - {/} -
- +
+
+
+
+ {#with _view.items.pets as :pets} - +
+ {#with :pets[0]}{/} + {#with :pets[1]}{/} + {#with :pets[2]}{/} + {#with :pets[3]}{/} +
+ +
+ {#with :pets[4]}{/} + {#with :pets[5]}{/} + {#with :pets[6]}{/} + {#with :pets[7]}{/} +
+ +
+ {#with :pets[8]}{/} + {#with :pets[9]}{/} + {#with :pets[10]}{/} + {#with :pets[11]}{/} +
+ +
+ {#with :pets[12]}{/} + {#with :pets[13]}{/} + {#with :pets[14]}{/} + {#with :pets[15]}{/} +
+ +
+ {#with :pets[16]}{/} +
+ + + {/} +
+
- {else} - - {/} + + + +
+ {else} + + {/}
-
- + +
- - -
  • - -
    -
    - - - {#if :task.history} - - - + + +
  • + +
    +
    + + + {#if :task.history} + + + + {/} +
    + + {#if :task.notes} + {/}
    - {#if :task.notes} - - {/} -
  • + +
    + + {#if equal(:task.type, 'habit')} + {#if :task.up}{/} + {#if :task.down}{/} + + {else if equal(:task.type, 'reward')} + {:task.value} + + {else} + + {/} +
    - -
    - - {#if equal(:task.type, 'habit')} - {#if :task.up}{/} - {#if :task.down}{/} - - {else if equal(:task.type, 'reward')} - {:task.value} - - {else} - - {/} -
    + +
    {:task.text}
    - -
    {:task.text}
    - - - - + + +