mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-04 21:01:06 -05:00
35 lines
1.3 KiB
Text
35 lines
1.3 KiB
Text
|
// DNT
|
||
|
extends /templates/base
|
||
|
|
||
|
block content
|
||
|
div
|
||
|
a(href='/artisans')
|
||
|
span.glyphicon.glyphicon-chevron-left
|
||
|
span Artisans Home
|
||
|
button#overview-button Show Overviews
|
||
|
br
|
||
|
button#intro-button Show Intros
|
||
|
table.table#level-table
|
||
|
for levelObj in (view.levels || [])
|
||
|
- var level = levelObj.level
|
||
|
tr
|
||
|
td.level-details
|
||
|
a(href='http://direct.codecombat.com/editor/level/'+level.get('slug') target="_blank")=level.get('name')
|
||
|
div
|
||
|
ul
|
||
|
for problem in levelObj.problems
|
||
|
li.problem=problem
|
||
|
td(style='width:90%')
|
||
|
.panel.panel-default
|
||
|
.panel-heading
|
||
|
h2.panel-title
|
||
|
a(data-toggle='collapse' href='#'+level.get('slug')+'-overview-collapse') Overview
|
||
|
.panel-collapse.collapse.overview(id=level.get('slug')+'-overview-collapse')
|
||
|
pre=levelObj.overview ? levelObj.overview.body : 'NOPE'
|
||
|
.panel.panel-default
|
||
|
.panel-heading
|
||
|
h2.panel-title
|
||
|
a(data-toggle='collapse' href='#'+level.get('slug')+'-intro-collapse') Intro
|
||
|
.panel-collapse.collapse.intro(id=level.get('slug')+'-intro-collapse')
|
||
|
pre=levelObj.intro ? levelObj.intro.body : 'NOPE'
|