mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
50 lines
1.6 KiB
Text
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...
|