mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-19 03:52:31 -05:00
27 lines
717 B
Text
27 lines
717 B
Text
|
extends /templates/base-flat
|
||
|
|
||
|
block page_nav
|
||
|
include ../courses/teacher-dashboard-nav.jade
|
||
|
|
||
|
block content
|
||
|
|
||
|
.container
|
||
|
if !me.isAnonymous() && me.isTeacher()
|
||
|
- var isOwner = view.classroom ? view.classroom.get('ownerID') === me.id : false;
|
||
|
// - var validStudent = ...
|
||
|
// load all students in this class
|
||
|
// check if this student is in the class
|
||
|
|
||
|
if isOwner
|
||
|
// also check if validStudent
|
||
|
h1 Student Profile Page
|
||
|
p Class name:
|
||
|
span= view.classroom.get('name')
|
||
|
p Student name:
|
||
|
span= view.user.get('name')
|
||
|
p Student Last Played:
|
||
|
span= view.lastPlayedString
|
||
|
|
||
|
else
|
||
|
p You don't own me! (this classroom)
|