mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-19 19:17:13 -05:00
Update Student License requirement copy
This commit is contained in:
parent
bfa49cbbc6
commit
c3b3c6ea2a
3 changed files with 26 additions and 38 deletions
|
@ -1475,8 +1475,7 @@
|
||||||
all_students: "All Students"
|
all_students: "All Students"
|
||||||
apply_licenses: "Apply Licenses"
|
apply_licenses: "Apply Licenses"
|
||||||
not_enough_enrollments: "Not enough licenses available."
|
not_enough_enrollments: "Not enough licenses available."
|
||||||
enrollments_blurb_1: "Students taking Computer Science"
|
enrollments_blurb: "Students are required to have a license to access any content after the first course."
|
||||||
enrollments_blurb_2: "require a license to access the courses."
|
|
||||||
credits_available: "Licenses Available"
|
credits_available: "Licenses Available"
|
||||||
total_unique_students: "Total Students"
|
total_unique_students: "Total Students"
|
||||||
total_enrolled_students: "Enrolled Students"
|
total_enrolled_students: "Enrolled Students"
|
||||||
|
|
|
@ -38,11 +38,7 @@ block content
|
||||||
=' '
|
=' '
|
||||||
a#how-to-enroll-link(data-i18n="teacher.how_to_apply_licenses")
|
a#how-to-enroll-link(data-i18n="teacher.how_to_apply_licenses")
|
||||||
h3(data-i18n='teacher.enrollments')
|
h3(data-i18n='teacher.enrollments')
|
||||||
h4#enrollments-blurb
|
h4#enrollments-blurb(data-i18n='teacher.enrollments_blurb')
|
||||||
span(data-i18n='teacher.enrollments_blurb_1')
|
|
||||||
span 2–#{view.state.get('totalCourses')}
|
|
||||||
span(data-i18n='teacher.enrollments_blurb_2')
|
|
||||||
|
|
||||||
- var available = view.state.get('prepaidGroups').available
|
- var available = view.state.get('prepaidGroups').available
|
||||||
- var pending = view.state.get('prepaidGroups').pending
|
- var pending = view.state.get('prepaidGroups').pending
|
||||||
- var anyPrepaids = available || pending
|
- var anyPrepaids = available || pending
|
||||||
|
|
|
@ -59,12 +59,6 @@ describe 'EnrollmentsView', ->
|
||||||
window.view = @view
|
window.view = @view
|
||||||
@view.supermodel.once 'loaded-all', done
|
@view.supermodel.once 'loaded-all', done
|
||||||
|
|
||||||
|
|
||||||
it 'shows how many courses there are which enrolled students will have access to', ->
|
|
||||||
expect(_.contains(@view.$('#enrollments-blurb').text(), '2–4')).toBe(true)
|
|
||||||
if @view.$('#actions-col').length isnt 1
|
|
||||||
fail('There should be an #action-col, other tests depend on it.')
|
|
||||||
|
|
||||||
describe '"Get Licenses" area', ->
|
describe '"Get Licenses" area', ->
|
||||||
|
|
||||||
describe 'when the teacher has made contact', ->
|
describe 'when the teacher has made contact', ->
|
||||||
|
@ -89,4 +83,3 @@ describe 'EnrollmentsView', ->
|
||||||
|
|
||||||
it 'fills the void with the rest of the page content', ->
|
it 'fills the void with the rest of the page content', ->
|
||||||
expect(@view.$('#actions-col').length).toBe(0)
|
expect(@view.$('#actions-col').length).toBe(0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue