codecombat/app/templates/admin/school-counts.jade

81 lines
2.4 KiB
Text
Raw Normal View History

2016-06-21 12:29:41 -04:00
extends /templates/base
//- DO NOT TRANSLATE
block content
if !me.isAdmin()
div You must be logged in as an admin to view this page.
else if !view.countryGraphs || !view.countryGraphs['USA']
h3 Loading...
2016-06-21 12:29:41 -04:00
else
p
div CodeCombat is now in #{view.countryGraphs['USA'].totalSchools} schools with #{view.countryGraphs['USA'].totalStudents} students [and #{view.countryGraphs['USA'].totalTeachers} teachers] [in #{view.countryGraphs['USA'].totalStates} states] in the USA
p
div Untriaged students: #{view.untriagedStudents}
div Untriaged teachers: #{view.untriagedTeachers}
2016-06-21 12:29:41 -04:00
.small Teacher: owns a classroom or has a teacher role
.small Student: member of a classroom or has schoolName set, not in HoC course instance
.small +3 USA states are GU, PR, DC
p
ul
li
a(href="#usaStates") USA States
li
a(href="#usaDistrictsByState") USA Districts by State
li
a(href="#countries") Countries
2016-06-21 12:29:41 -04:00
a(name="usaStates")
h2 USA States
if view.countryGraphs['USA'].stateCounts
2016-06-21 12:29:41 -04:00
table.table.table-striped.table-condensed
tr
th State
th Districts
th Schools
th Teachers
th Students
each stateCount in view.countryGraphs['USA'].stateCounts
2016-06-21 12:29:41 -04:00
tr
td= stateCount.state
td= stateCount.districts
td= stateCount.schools
td= stateCount.teachers
td= stateCount.students
a(name="usaDistrictsByState")
h2 USA Districts by State
if view.countryGraphs['USA'].districtCounts
2016-06-21 12:29:41 -04:00
table.table.table-striped.table-condensed
tr
th State
th District
th Schools
th Teachers
th Students
each districtCount in view.countryGraphs['USA'].districtCounts
2016-06-21 12:29:41 -04:00
tr
td= districtCount.state
td= districtCount.district
td= districtCount.schools
td= districtCount.teachers
td= districtCount.students
a(name="countries")
h2 Countries
if view.countryCounts
table.table.table-striped.table-condensed
tr
th Country
th Schools
th Teachers
th Students
each countryCount in view.countryCounts
tr
td= countryCount.country
td= countryCount.schools
td= countryCount.teachers
td= countryCount.students