codecombat/app/templates/editor/thangTasksView.jade
2015-12-21 12:44:22 -08:00

50 lines
1.6 KiB
Text

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
table.table#taskTable
tr
th Thang Name
th Task List
for thang in view.processedThangs
if (thang.tasks && thang.tasks.filter(function(_elem) {return !_elem.complete}).length > 0) || false
tr
td.taskOwner
a(href= "thang/" + thang.get('slug'))
| #{thang.get('name')}
td.tasksTable
for task in (thang.tasks || [])
if !task.complete
div.taskDescription
| #{task.name}
else
span No view.processedThangs
//
block content
#thang-tasks-view
if view.processedThangs
input#search
hr
table.table#taskTable
tr
th Thang Name
th Task List
for thang in view.processedThangs.models
if (thang.get('tasks') && thang.get('tasks').filter(function(_elem) {return !_elem.complete}).length > 0) || false
tr
td.taskOwner
a(href= "thang/" + thang.get('slug'))
| #{thang.get('name')}
td.tasksTable
for task in (thang.get('tasks') || [])
if !task.complete
div.taskDescription
| #{task.name}
else
span Loading...