mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-18 03:23:42 -05:00
fixed the background issue on the tasks tab
This commit is contained in:
parent
d5e3be62a4
commit
95146e7820
1 changed files with 42 additions and 40 deletions
|
@ -1,42 +1,44 @@
|
||||||
mixin task-row(cid)
|
.nano.editor-nano-container
|
||||||
- var task = view.getTaskByCID(cid)
|
.nano-content
|
||||||
- var taskName = task.get('name');
|
mixin task-row(cid)
|
||||||
- var isComplete = task.get('complete')
|
- var task = view.getTaskByCID(cid)
|
||||||
tr.task-row(data-task-cid=cid)
|
- var taskName = task.get('name');
|
||||||
td.task-check
|
- var isComplete = task.get('complete')
|
||||||
div.checkbox
|
tr.task-row(data-task-cid=cid)
|
||||||
input(type='checkbox', checked=(isComplete || false)).task-input
|
td.task-check
|
||||||
if task.get('curEdit') == true
|
div.checkbox
|
||||||
td.edit-cell
|
input(type='checkbox', checked=(isComplete || false)).task-input
|
||||||
td.task-name
|
if task.get('curEdit') == true
|
||||||
input(type="input", value=taskName)#cur-edit
|
td.edit-cell
|
||||||
else
|
td.task-name
|
||||||
td.edit-cell
|
input(type="input", value=taskName)#cur-edit
|
||||||
span.glyphicon.glyphicon-edit.start-edit
|
|
||||||
td.task-name
|
|
||||||
- var result = view.getTaskURL(taskName)
|
|
||||||
if result !== null
|
|
||||||
// https://github.com/codecombat/codecombat/wiki/Tasks-Tab#<slug goes here>
|
|
||||||
a(href='https://github.com/codecombat/codecombat/wiki/Tasks-Tab#' + result, target='blank')= taskName
|
|
||||||
else
|
else
|
||||||
span= taskName
|
td.edit-cell
|
||||||
|
span.glyphicon.glyphicon-edit.start-edit
|
||||||
|
td.task-name
|
||||||
|
- var result = view.getTaskURL(taskName)
|
||||||
|
if result !== null
|
||||||
|
// https://github.com/codecombat/codecombat/wiki/Tasks-Tab#<slug goes here>
|
||||||
|
a(href='https://github.com/codecombat/codecombat/wiki/Tasks-Tab#' + result, target='blank')= taskName
|
||||||
|
else
|
||||||
|
span= taskName
|
||||||
|
|
||||||
block
|
block
|
||||||
table.table.table-striped.table-hover
|
table.table.table-striped.table-hover
|
||||||
tr
|
tr
|
||||||
th.task-check Complete
|
th.task-check Complete
|
||||||
th.edit-cell Edit
|
th.edit-cell Edit
|
||||||
th Incomplete Tasks
|
th Incomplete Tasks
|
||||||
for task in (view.taskArray() || [])
|
for task in (view.taskArray() || [])
|
||||||
if task.get('revert').complete !== true
|
if task.get('revert').complete !== true
|
||||||
+task-row(task.cid)
|
+task-row(task.cid)
|
||||||
tr
|
tr
|
||||||
th.task-check
|
th.task-check
|
||||||
th.edit-cell
|
th.edit-cell
|
||||||
th Completed Tasks
|
th Completed Tasks
|
||||||
for task in (view.taskArray() || [])
|
for task in (view.taskArray() || [])
|
||||||
if task.get('revert').complete === true
|
if task.get('revert').complete === true
|
||||||
+task-row(task.cid)
|
+task-row(task.cid)
|
||||||
button#create-task.btn.btn-primary Add Task
|
button#create-task.btn.btn-primary Add Task
|
||||||
if view.missingDefaults().length !== 0
|
if view.missingDefaults().length !== 0
|
||||||
button#add-default-tasks.btn.btn-default Add Default Tasks
|
button#add-default-tasks.btn.btn-default Add Default Tasks
|
||||||
|
|
Loading…
Reference in a new issue