mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
3d705e5d70
Fix link to /teachers/classes (fixes bugquest#20) Fix edit button color/icon (bugquest#23) Fix bugquest#34 Fix password input width (bugquest#33) Center new pasword text Fix teacher password reset endpoint (bugquest#4) Refactor+use NewHomeView logic for user page button (Fixes bugquest#2) Refactor teacher-password-reset endpoint This makes it much easier to prevent collisions with other logic when PUTing new User attributes. Add regression test for converting to teacher account Fix email verified links, require login (fix bugquest#16) Fix me having stale emailVerified value (Fixes bugquest#40) Don't show JoinClassModal to students Add paragraph to JoinClassModal (fixes bugquest#14) Update change-password label text (fixes bugquest#30) Fix prompting for login on Account Settings page (bugquest #10) Show validation errors for teacher password reset (bugquest#36) Show yellow progress dot in My Classes if anyone has started (bugquest#55) Remove confusing text (bugquest#100)
37 lines
1.5 KiB
Text
37 lines
1.5 KiB
Text
extends /templates/base-flat
|
|
|
|
block content
|
|
.container.text-center
|
|
if state.get('verifyStatus') === "pending"
|
|
span(data-i18n="account.verifying_email")
|
|
| Verifying your email address...
|
|
else if state.get('verifyStatus') === "success"
|
|
.alert.alert-success.center-block
|
|
.glyphicon.glyphicon-ok-circle.m-r-1
|
|
span(data-i18n="account.successfully_verified")
|
|
| You've successfully verified your email address!
|
|
if view.userID !== me.id
|
|
a.login-button.btn.btn-navy.btn-lg(data-i18n="login.log_in")
|
|
else if view.user.isTeacher()
|
|
a.btn.btn-lg.btn-forest(href="/teachers/classes")
|
|
span(data-i18n="new_home.goto_classes")
|
|
else if me.justPlaysCourses()
|
|
div.m-b-1
|
|
a.btn.btn-forest.btn-lg(href="/courses", data-i18n="courses.continue_playing")
|
|
div
|
|
a.btn.btn-primary.btn-lg.play-btn(href="/courses", data-i18n="new_home.view_progress")
|
|
else
|
|
div.m-b-1
|
|
a.btn.btn-forest.btn-lg.play-btn(href="/play", data-i18n="courses.continue_playing")
|
|
div
|
|
a.btn.btn-primary.btn-lg(href="/user/#{me.getSlugOrID()}", data-i18n="new_home.view_profile")
|
|
else if state.get('verifyStatus') === "error"
|
|
.alert.alert-danger.center-block
|
|
.glyphicon.glyphicon-remove-circle.m-r-1
|
|
span(data-i18n="account.verify_error")
|
|
| Something went wrong when verifying your email :(
|
|
else
|
|
div
|
|
| This really shouldn't happen
|
|
div
|
|
= state.get('verifyStatus')
|