From 95146e7820025a766734193f888db1ee56ac600b Mon Sep 17 00:00:00 2001 From: Matt Sanders Date: Fri, 5 Aug 2016 17:02:22 +1200 Subject: [PATCH] fixed the background issue on the tasks tab --- app/templates/editor/level/tasks-tab.jade | 82 ++++++++++++----------- 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/app/templates/editor/level/tasks-tab.jade b/app/templates/editor/level/tasks-tab.jade index 247653b4d..70a2870be 100644 --- a/app/templates/editor/level/tasks-tab.jade +++ b/app/templates/editor/level/tasks-tab.jade @@ -1,42 +1,44 @@ -mixin task-row(cid) - - var task = view.getTaskByCID(cid) - - var taskName = task.get('name'); - - var isComplete = task.get('complete') - tr.task-row(data-task-cid=cid) - td.task-check - div.checkbox - input(type='checkbox', checked=(isComplete || false)).task-input - if task.get('curEdit') == true - td.edit-cell - td.task-name - input(type="input", value=taskName)#cur-edit - else - 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# - a(href='https://github.com/codecombat/codecombat/wiki/Tasks-Tab#' + result, target='blank')= taskName +.nano.editor-nano-container + .nano-content + mixin task-row(cid) + - var task = view.getTaskByCID(cid) + - var taskName = task.get('name'); + - var isComplete = task.get('complete') + tr.task-row(data-task-cid=cid) + td.task-check + div.checkbox + input(type='checkbox', checked=(isComplete || false)).task-input + if task.get('curEdit') == true + td.edit-cell + td.task-name + input(type="input", value=taskName)#cur-edit 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# + a(href='https://github.com/codecombat/codecombat/wiki/Tasks-Tab#' + result, target='blank')= taskName + else + span= taskName -block - table.table.table-striped.table-hover - tr - th.task-check Complete - th.edit-cell Edit - th Incomplete Tasks - for task in (view.taskArray() || []) - if task.get('revert').complete !== true - +task-row(task.cid) - tr - th.task-check - th.edit-cell - th Completed Tasks - for task in (view.taskArray() || []) - if task.get('revert').complete === true - +task-row(task.cid) - button#create-task.btn.btn-primary Add Task - if view.missingDefaults().length !== 0 - button#add-default-tasks.btn.btn-default Add Default Tasks + block + table.table.table-striped.table-hover + tr + th.task-check Complete + th.edit-cell Edit + th Incomplete Tasks + for task in (view.taskArray() || []) + if task.get('revert').complete !== true + +task-row(task.cid) + tr + th.task-check + th.edit-cell + th Completed Tasks + for task in (view.taskArray() || []) + if task.get('revert').complete === true + +task-row(task.cid) + button#create-task.btn.btn-primary Add Task + if view.missingDefaults().length !== 0 + button#add-default-tasks.btn.btn-default Add Default Tasks