habitica/website/views/shared/tasks/index.jade

40 lines
1.6 KiB
Text
Raw Normal View History

2015-06-05 02:05:41 +00:00
// Note here, we need this part of Habit to be a directive since we're going to be passing it variables from various
// parts of the app. The alternative would be to create new scopes for different containing sections, but that
// started to get unwieldy
include ./task_view/mixins
script(id='templates/habitrpg-tasks.html', type="text/ng-template")
.tasks-lists.container-fluid
.row
2015-06-05 12:26:03 +00:00
.col-md-3.col-sm-6(ng-repeat='list in lists', ng-class='::{"rewards-module": list.type==="reward"}')
2015-06-05 02:05:41 +00:00
.task-column(class='{{::list.type}}s')
include ./task_view/graph
h2.task-column_title {{::list.header}}
include ./task_view/help
.todos-chart(ng-if='::list.type == "todo"', ng-show='charts.todos')
include ./task_view/add_new
2015-07-11 05:11:02 +00:00
alert.alert-warning.dailiesRestingInInn(ng-if='::list.type == "daily" && user.preferences.sleep && !$state.includes("options.social.challenges")')
2015-06-05 02:05:41 +00:00
i.glyphicon.glyphicon-warning-sign  
=env.t('dailiesRestingInInn')
+taskColumnTabs('top')
// Actual List
ul(class='{{::list.type}}s main-list', ng-show='obj[list.type + "s"].length > 0', hrpg-sort-tasks, ng-if='!$state.includes("options.social.challenges")')
include ./task
//Loads the non-sortable lists for challenges
ul(class='{{::list.type}}s main-list', ng-show='obj[list.type + "s"].length > 0', ng-if='$state.includes("options.social.challenges")')
include ./task
include ./task_view/static_rewards
include ./task_view/spells
+taskColumnTabs('bottom')