mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -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"
|
||||
apply_licenses: "Apply Licenses"
|
||||
not_enough_enrollments: "Not enough licenses available."
|
||||
enrollments_blurb_1: "Students taking Computer Science"
|
||||
enrollments_blurb_2: "require a license to access the courses."
|
||||
enrollments_blurb: "Students are required to have a license to access any content after the first course."
|
||||
credits_available: "Licenses Available"
|
||||
total_unique_students: "Total Students"
|
||||
total_enrolled_students: "Enrolled Students"
|
||||
|
|
|
@ -38,11 +38,7 @@ block content
|
|||
=' '
|
||||
a#how-to-enroll-link(data-i18n="teacher.how_to_apply_licenses")
|
||||
h3(data-i18n='teacher.enrollments')
|
||||
h4#enrollments-blurb
|
||||
span(data-i18n='teacher.enrollments_blurb_1')
|
||||
span 2–#{view.state.get('totalCourses')}
|
||||
span(data-i18n='teacher.enrollments_blurb_2')
|
||||
|
||||
h4#enrollments-blurb(data-i18n='teacher.enrollments_blurb')
|
||||
- var available = view.state.get('prepaidGroups').available
|
||||
- var pending = view.state.get('prepaidGroups').pending
|
||||
- var anyPrepaids = available || pending
|
||||
|
|
|
@ -59,12 +59,6 @@ describe 'EnrollmentsView', ->
|
|||
window.view = @view
|
||||
@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 'when the teacher has made contact', ->
|
||||
|
@ -89,4 +83,3 @@ describe 'EnrollmentsView', ->
|
|||
|
||||
it 'fills the void with the rest of the page content', ->
|
||||
expect(@view.$('#actions-col').length).toBe(0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue