codecombat/app/templates/artisans/level-tasks-view.jade

37 lines
919 B
Text
Raw Normal View History

// DNT
extends /templates/base
block content
#level-tasks-view
div
a(href='/artisans')
span.glyphicon.glyphicon-chevron-left
span Artisans Home
br
2016-05-18 16:33:02 -04:00
input.searchInput#name-search(placeholder='Filter: Level Name')
br
2016-05-18 16:33:02 -04:00
input.searchInput#desc-search(placeholder='Filter: Task Description')
hr
2016-05-18 16:33:02 -04:00
div#level-table
if view.processedLevels
table.table.table-striped
tr
th Level Name
th Task List
for level in view.processedLevels
if view.hasIncompleteTasks(level)
+levelRow(level)
else
div No view.processedLevels
mixin levelRow(level)
tr
td.taskOwner
a(href= 'level/' + level.slug)= level.name
td.tasks
table.table-striped.table-hover.tasksTable
for task in (level.tasks || [])
if !task.complete
tr
td= task.name