mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
b4a0fe146e
In level view, showing data from last 30 days, with top 20 issues by count.
73 lines
2.1 KiB
Text
73 lines
2.1 KiB
Text
.jumbotron
|
|
.button.close(type="button", aria-hidden="true") ×
|
|
h1
|
|
span.spr= level.get('name')
|
|
a(href="/editor/level/#{level.get('slug')}", target="_blank") (edit)
|
|
p= level.get('description')
|
|
|
|
h4 Completion Rates
|
|
if levelCompletions
|
|
table.table.table-bordered.table-condensed.table-hover(style='font-size:10pt')
|
|
thead
|
|
tr
|
|
td Date
|
|
td Started
|
|
td Finished
|
|
td Completion %
|
|
tbody
|
|
- for (var i = 0; i < levelCompletions.length; i++)
|
|
tr
|
|
td= levelCompletions[i].created
|
|
td= levelCompletions[i].started
|
|
td= levelCompletions[i].finished
|
|
td= levelCompletions[i].rate
|
|
else
|
|
div Loading...
|
|
|
|
h4 Average Playtimes
|
|
if levelPlaytimes
|
|
table.table.table-bordered.table-condensed.table-hover(style='font-size:10pt')
|
|
thead
|
|
tr
|
|
td Date
|
|
td Average (s)
|
|
tbody
|
|
- for (var i = 0; i < levelPlaytimes.length; i++)
|
|
tr
|
|
td= levelPlaytimes[i].created
|
|
td= levelPlaytimes[i].average.toFixed(2)
|
|
else
|
|
div Loading...
|
|
|
|
h4 Common Problems
|
|
if commonProblems
|
|
if commonProblems.startDay
|
|
if commonProblems.endDay
|
|
div(style='font-size:10pt') #{commonProblems.startDay} to #{commonProblems.endDay}
|
|
else
|
|
div(style='font-size:10pt') #{commonProblems.startDay} to today
|
|
table.table.table-bordered.table-condensed.table-hover(style='font-size:10pt')
|
|
thead
|
|
tr
|
|
td Language
|
|
td Error Message
|
|
td Error Hint
|
|
td Count
|
|
tbody
|
|
- for (var i = 0; i < commonProblems.length && i < 20; i++)
|
|
tr
|
|
td= commonProblems[i].language
|
|
td= commonProblems[i].message
|
|
td= commonProblems[i].hint
|
|
td= commonProblems[i].count
|
|
else
|
|
div Loading...
|
|
|
|
if level.get('tasks')
|
|
.tasks
|
|
h3 Tasks (read only)
|
|
ul.list-unstyled
|
|
for task in level.get('tasks')
|
|
li
|
|
input(type='checkbox', checked=task.complete)
|
|
span.spl= task.name
|