mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 03:30:25 +00:00
reorganize html
This commit is contained in:
parent
0104e50309
commit
9a34bfd9be
1 changed files with 49 additions and 49 deletions
|
|
@ -32,6 +32,54 @@
|
|||
<% end %>-->
|
||||
</div>
|
||||
|
||||
<Body:>
|
||||
<br/>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
|
||||
<!-- would rather have one component: <app:taskList>, which handles taskList, task, and newTask. However,
|
||||
can't pass references as paramters. so <app:taskList newModel={_newHabit} list={_habitList}> doesn't work
|
||||
and have to pass those in via {{{content}}} instead -->
|
||||
|
||||
<div class="span2">
|
||||
<app:taskList title=Habits type=habit>
|
||||
{#each _habitList as :task}<app:task />{/}
|
||||
</app:taskList>
|
||||
<app:newTask type=habit task={_newHabit} />
|
||||
</div>
|
||||
|
||||
<div class="span2">
|
||||
<app:taskList title=Dailies type=daily>
|
||||
{#each _dailyList as :task}<app:task />{/}
|
||||
</app:taskList>
|
||||
<app:newTask type=daily task={_newDaily} />
|
||||
</div>
|
||||
|
||||
<div class="span2">
|
||||
<app:taskList title=Todos type=todo>
|
||||
{#each _todoList as :task}<app:task />{/}
|
||||
</app:taskList>
|
||||
<app:newTask type=todo task={_newTodo} />
|
||||
</div>
|
||||
|
||||
<div class="span2">
|
||||
{gold(_user.money)} <img src='/img/coin_single_gold.png'/> {silver(_user.money)} <img src='/img/coin_single_silver.png'/>
|
||||
<app:taskList title=Rewards type=reward>
|
||||
{#each _rewardList as :task}<app:task />{/}
|
||||
</app:taskList>
|
||||
<app:newTask type=reward task={_newReward} />
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<% if !current_user %>
|
||||
<%= link_to(image_tag("http://line6.com/images/connections/facebook-login-button.png", :alt => "Login with Facebook"), user_omniauth_authorize_path(:facebook)) %>
|
||||
<% else %>-->
|
||||
<!--<% end %>-->
|
||||
|
||||
<newTask:>
|
||||
<form class="form-inline" data-task-type={{{type}}} x-bind=submit:addTask>
|
||||
<input class="input-medium" type="text" value={{{task}}} />
|
||||
|
|
@ -93,55 +141,7 @@
|
|||
{/}
|
||||
<a x-bind=click:toggleEdit data-selector="{{:task.id}}-edit" class="btn">Save</a>
|
||||
<a x-bind=click:del class="btn btn-danger">Delete</a>
|
||||
</div>
|
||||
|
||||
<Body:>
|
||||
<br/>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
|
||||
<!-- would rather have one component: <app:taskList>, which handles taskList, task, and newTask. However,
|
||||
can't pass references as paramters. so <app:taskList newModel={_newHabit} list={_habitList}> doesn't work
|
||||
and have to pass those in via {{{content}}} instead -->
|
||||
|
||||
<div class="span2">
|
||||
<app:taskList title=Habits type=habit>
|
||||
{#each _habitList as :task}<app:task />{/}
|
||||
</app:taskList>
|
||||
<app:newTask type=habit task={_newHabit} />
|
||||
</div>
|
||||
|
||||
<div class="span2">
|
||||
<app:taskList title=Dailies type=daily>
|
||||
{#each _dailyList as :task}<app:task />{/}
|
||||
</app:taskList>
|
||||
<app:newTask type=daily task={_newDaily} />
|
||||
</div>
|
||||
|
||||
<div class="span2">
|
||||
<app:taskList title=Todos type=todo>
|
||||
{#each _todoList as :task}<app:task />{/}
|
||||
</app:taskList>
|
||||
<app:newTask type=todo task={_newTodo} />
|
||||
</div>
|
||||
|
||||
<div class="span2">
|
||||
{gold(_user.money)} <img src='/img/coin_single_gold.png'/> {silver(_user.money)} <img src='/img/coin_single_silver.png'/>
|
||||
<app:taskList title=Rewards type=reward>
|
||||
{#each _rewardList as :task}<app:task />{/}
|
||||
</app:taskList>
|
||||
<app:newTask type=reward task={_newReward} />
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<% if !current_user %>
|
||||
<%= link_to(image_tag("http://line6.com/images/connections/facebook-login-button.png", :alt => "Login with Facebook"), user_omniauth_authorize_path(:facebook)) %>
|
||||
<% else %>-->
|
||||
<!--<% end %>-->
|
||||
</div>
|
||||
|
||||
<Footer:>
|
||||
<a href="https://github.com/lefnire/habitrpg"><img style="z-index:11; position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
|
||||
|
|
|
|||
Loading…
Reference in a new issue