2015-01-16 18:44:24 -05:00
|
|
|
extends /templates/core/modal-base
|
|
|
|
|
|
|
|
block modal-header-content
|
|
|
|
h3 Campaign Analytics
|
|
|
|
if campaignCompletions.startDay && campaignCompletions.endDay
|
|
|
|
.input-group.input-group-sm
|
|
|
|
input.form-control#input-startday(type='text', style='width:100px;', value=campaignCompletions.startDay)
|
|
|
|
input.form-control#input-endday(type='text', style='width:100px;', value=campaignCompletions.endDay)
|
|
|
|
button.btn.btn-default.btn-sm#reload-button(style='margin-left:10px;') Reload
|
|
|
|
|
|
|
|
block modal-body-content
|
|
|
|
if campaignCompletions && campaignCompletions.levels
|
|
|
|
table.table.table-bordered.table-condensed.table-hover(style='font-size:10pt')
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
td Level
|
|
|
|
td Started
|
|
|
|
td Finished
|
2015-01-18 19:29:44 -05:00
|
|
|
td Left Game
|
|
|
|
td LG %
|
2015-01-16 18:44:24 -05:00
|
|
|
td Playtime (s)
|
2015-01-18 19:29:44 -05:00
|
|
|
td LG/s
|
2015-01-16 18:44:24 -05:00
|
|
|
td Completion %
|
|
|
|
tbody
|
|
|
|
- for (var i = 0; i < campaignCompletions.levels.length; i++)
|
|
|
|
tr
|
2015-01-19 18:21:42 -05:00
|
|
|
td.level-name-container= campaignCompletions.levels[i].level
|
|
|
|
span.level-name-background(style="width:#{campaignCompletions.levels[i].usersRemaining || 0}%;")
|
2015-01-16 18:44:24 -05:00
|
|
|
td= campaignCompletions.levels[i].started
|
|
|
|
td= campaignCompletions.levels[i].finished
|
2015-01-18 19:29:44 -05:00
|
|
|
td= campaignCompletions.levels[i].dropped
|
|
|
|
if campaignCompletions.top3DropPercentage && campaignCompletions.top3DropPercentage.indexOf(campaignCompletions.levels[i].level) >= 0
|
|
|
|
td(style='background-color:pink;')= td= campaignCompletions.levels[i].dropPercentage
|
|
|
|
else
|
|
|
|
td= campaignCompletions.levels[i].dropPercentage
|
2015-01-16 18:44:24 -05:00
|
|
|
td= campaignCompletions.levels[i].averagePlaytime
|
2015-01-18 19:29:44 -05:00
|
|
|
if campaignCompletions.top3DropPerSecond && campaignCompletions.top3DropPerSecond.indexOf(campaignCompletions.levels[i].level) >= 0
|
|
|
|
td(style='background-color:pink;')= td= campaignCompletions.levels[i].droppedPerSecond
|
|
|
|
else
|
|
|
|
td= campaignCompletions.levels[i].droppedPerSecond
|
|
|
|
if campaignCompletions.top3 && campaignCompletions.top3.indexOf(campaignCompletions.levels[i].level) >= 0
|
2015-01-20 00:59:25 -05:00
|
|
|
td.level-completion-container(style='background-color:lightblue;')= campaignCompletions.levels[i].completionRate
|
|
|
|
svg.level-completion-background(id="background#{campaignCompletions.levels[i].level}")
|
2015-01-18 19:29:44 -05:00
|
|
|
else if campaignCompletions.bottom3 && campaignCompletions.bottom3.indexOf(campaignCompletions.levels[i].level) >= 0
|
2015-01-20 00:59:25 -05:00
|
|
|
td.level-completion-container(style='background-color:pink;')= campaignCompletions.levels[i].completionRate
|
|
|
|
svg.level-completion-background(id="background#{campaignCompletions.levels[i].level}")
|
2015-01-16 18:44:24 -05:00
|
|
|
else
|
2015-01-20 00:59:25 -05:00
|
|
|
td.level-completion-container= campaignCompletions.levels[i].completionRate
|
|
|
|
svg.level-completion-background(id="background#{campaignCompletions.levels[i].level}")
|
2015-01-16 18:44:24 -05:00
|
|
|
else
|
|
|
|
div Loading...
|
|
|
|
|
|
|
|
block modal-footer
|