codecombat/app/templates/editor/thangTasksView.jade

30 lines
758 B
Text
Raw Normal View History

2015-12-21 15:44:22 -05:00
extends /templates/base
block content
#thang-tasks-view
input#nameSearch(placeholder='Filter: Thang Name')
br
input#descSearch(placeholder='Filter: Task Description')
hr
if view.processedThangs
2015-12-21 18:42:46 -05:00
table.table.table-striped#thangTable
2015-12-21 15:44:22 -05:00
tr
th Thang Name
th Task List
for thang in view.processedThangs
2015-12-21 18:42:46 -05:00
if view.hasIncompleteTasks(thang)
+thangRow(thang)
2015-12-21 15:44:22 -05:00
else
span No view.processedThangs
2015-12-21 18:42:46 -05:00
mixin thangRow(thang)
tr
td.taskOwner
a(href= 'thang/' + thang.get('slug'))= thang.get('name')
td.tasks
table.table-striped.table-hover.tasksTable
for task in (thang.tasks || [])
if !task.complete
tr
2016-01-20 18:32:21 -05:00
td= task.name