mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Courses UI - Update free course button copy
This commit is contained in:
parent
69e7c68784
commit
985cfa2c56
2 changed files with 7 additions and 3 deletions
|
@ -29,7 +29,7 @@ block content
|
|||
each inst in instances
|
||||
option= inst.name
|
||||
.col-md-4
|
||||
button.btn.btn-success.btn-enter(data-course-id="#{courseID}") Enter
|
||||
button.btn.btn-success.btn-enter Enter
|
||||
.row.button-row.center.row-pick-class
|
||||
.col-md-12
|
||||
div.or Or
|
||||
|
@ -43,13 +43,13 @@ block content
|
|||
.col-md-8
|
||||
input.code-input(type='text', placeholder="Enter unlock code")
|
||||
.col-md-4
|
||||
button.btn.btn-success.btn-enroll(data-course-id="#{courseID}") Enroll
|
||||
button.btn.btn-success.btn-enroll Enroll
|
||||
.row.button-row.center
|
||||
.col-md-12
|
||||
div.or Or
|
||||
.row.button-row.center
|
||||
.col-md-12
|
||||
button.btn.btn-success.btn-lg.btn-buy(data-course-id="#{courseID}") Buy this course
|
||||
button.btn.btn-success.btn-lg.btn-buy Buy this course
|
||||
|
||||
h1.center Courses on CodeCombat
|
||||
|
||||
|
|
|
@ -51,6 +51,10 @@ module.exports = class CoursesView extends RootView
|
|||
$('#continueModal').find('.btn-enroll').data('course-id', courseID)
|
||||
$('#continueModal').find('.btn-enter').data('course-id', courseID)
|
||||
$('#continueModal .row-pick-class').show() if @courses[courseID]?.unlocked
|
||||
if courseTitle is 'Introduction to Computer Science'
|
||||
$('#continueModal .btn-buy').prop('innerText', 'Get this FREE course!')
|
||||
else
|
||||
$('#continueModal .btn-buy').prop('innerText', 'Buy this course')
|
||||
|
||||
onClickEnroll: (e) ->
|
||||
$('#continueModal').modal('hide')
|
||||
|
|
Loading…
Reference in a new issue