Skip to content

Commit

Permalink
Update class progress tab to show details if student assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
differentmatt committed Nov 22, 2016
1 parent ec40265 commit d41b484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/locale/en.coffee
Expand Up @@ -1400,7 +1400,7 @@
assigning_course: "Assigning course"
course_solution: "Course Solution"
level_overview_solutions: "Level Overview and Solutions"
no_student_progress: "No student progress yet."
no_student_assigned: "No students have been assigned this course."
paren_new: "(new)"
teacher_dashboard: "Teacher Dashboard" # Navbar
my_classes: "My Classes"
Expand Down
6 changes: 3 additions & 3 deletions app/templates/courses/teacher-class-view.jade
Expand Up @@ -273,9 +273,9 @@ mixin courseProgressTab
.key-text
span.small(data-i18n="teacher.level_not_started")
.clearfix
- var progressData = state.get('progressData') || {};
- var course = state.get('selectedCourse');
if course && view.availableCourseMap[course.id] && progressData[view.classroom.id] && progressData[view.classroom.id][course.id].started
- var courseInstance = view.courseInstances.findWhere({ courseID: course.id, classroomID: view.classroom.id });
if course && view.availableCourseMap[course.id] && courseInstance && courseInstance.get('members').length > 0
.render-on-course-sync
+courseOverview(course)
.student-levels-table
Expand All @@ -286,7 +286,7 @@ mixin courseProgressTab
else
br
h2.text-center
i(data-i18n='teacher.no_student_progress')
i(data-i18n='teacher.no_student_assigned')
.unassigned-students.render-on-course-sync
if state.get('selectedCourse') && state.get('selectedCourse').members.length < state.get('students').length
h2
Expand Down

0 comments on commit d41b484

Please sign in to comment.