🐛Fix teacher dashboard course # progress

This commit is contained in:
Matt Lott 2016-08-16 16:30:12 -07:00
parent 8054cd6cf0
commit efa4b2b158
4 changed files with 13 additions and 10 deletions

View file

@ -45,6 +45,7 @@ module.exports =
users = _.map userIDs, (id) ->
students.get(id)
return {
courseName: course.get('name')
courseNumber: courseIndex + 1
levelNumber: levelIndex + 1
levelName: level.get('name')
@ -74,6 +75,7 @@ module.exports =
users = _.map userIDs, (id) ->
students.get(id)
return {
courseName: course.get('name')
courseNumber: courseIndex + 1
levelNumber: levelIndex + 1
levelName: level.get('name')

View file

@ -1444,7 +1444,7 @@
edit: "edit"
edit_2: "Edit"
remove: "remove"
latest_completed: "Latest Completed"
latest_completed: "Latest completed" # {change}
sort_by: "Sort by"
progress: "Progress"
completed: "Completed"

View file

@ -142,13 +142,13 @@
overflow: hidden
text-overflow: ellipsis
white-space: nowrap
.level-name
white-space: nowrap
overflow: ellipsis
font-weight: bold
// line-height: 20px
font-size: 14px
.sort-button
border: none
background: none
@ -296,7 +296,10 @@
background: #fafafa
border: thin solid #979797
text-align: center
#join-url-input
font-size: 14px
button
height: 50px
width: 210px

View file

@ -159,11 +159,9 @@ mixin breadcrumbs
mixin longLevelName(data)
if data
div.level-name
span(data-i18n="courses.course")
span= ' ' + data.courseNumber + ', '
span(data-i18n="play_level.level")
span= ' ' + data.levelNumber + ': '
span= data.levelName
span= data.courseName + ': '
span(data-i18n='play_level.level')
span.spl= data.levelNumber
else
div.level-name(data-i18n='teacher.not_applicable')