Put /schools into the main flow in place of anonymous /teachers for now

This commit is contained in:
Nick Winter 2015-12-21 15:02:11 -08:00
parent b5e7a9694e
commit e070c70b9d
3 changed files with 11 additions and 0 deletions

View file

@ -1032,6 +1032,9 @@
additional_resources_3_pref: "Visit our"
additional_resources_3_mid: "Teacher Forums"
additional_resources_3_suff: "to connect to fellow educators who are using CodeCombat."
additional_resources_4_pref: "Check out our"
additional_resources_4_mid: "Schools Page"
additional_resources_4_suff: "to learn more about CodeCombat's classroom offerings."
your_classes: "Your Classes"
no_classes: "No classes yet!"
create_new_class1: "create new class"

View file

@ -43,6 +43,10 @@ block content
span.spr(data-i18n="courses.additional_resources_3_pref")
a(href='http://discourse.codecombat.com/c/teachers', data-i18n="courses.additional_resources_3_mid")
span.spl(data-i18n="courses.additional_resources_3_suff")
li
span.spr(data-i18n="courses.additional_resources_4_pref")
a(href='/teachers/freetrial', data-i18n="courses.additional_resources_4_mid")
span.spl(data-i18n="courses.additional_resources_4_suff")
.section-header(data-i18n="courses.your_classes")

View file

@ -13,6 +13,10 @@ module.exports = class TeachersView extends RootView
constructor: ->
super()
if me.isAnonymous()
_.defer ->
# Just go to /schools for now, that page is better than this one. TODO: figure out real URLs/flow/content.
application.router.navigate "/schools", trigger: true
unless me.isAnonymous()
_.defer ->
application.router.navigate "/courses/teachers", trigger: true