🐛Request demo Ux bugs

Only ask about login if not logged in
Add missing set up a class i18n string
This commit is contained in:
Matt Lott 2016-03-10 14:39:41 -08:00
parent 84cdf1e2ce
commit acba838db4
2 changed files with 9 additions and 6 deletions

View file

@ -747,6 +747,7 @@
thanks_p: "We'll be in touch soon. Questions? Email us:"
thanks_anon: "Log in or create an account to set up a class, add your students, and monitor their progress as they learn computer science." # {change}
thanks_logged_in: "Set up a class, add your students, and monitor their progress as they learn computer science." # {change}
setup_a_class: "Set Up a Class"
versions:
save_version_title: "Save New Version"

View file

@ -186,9 +186,10 @@ block content
h4(data-i18n="new_home.request_demo_subtitle")
div
a.btn.btn-primary.btn-lg(href="/teachers/demo", data-i18n="new_home.request_demo")
.have-an-account
span.spr(data-i18n="new_home.have_an_account")
a.login-button Login
if me.isAnonymous()
.have-an-account
span.spr(data-i18n="new_home.have_an_account")
a.login-button Login
h3.text-center(data-i18n="new_home.computer_science")
h4.text-center
@ -277,9 +278,10 @@ block content
else
div
a.btn.btn-primary.btn-lg(href="/teachers/demo", data-i18n="new_home.request_demo")
.have-an-account
span.spr(data-i18n="new_home.have_an_account")
a.login-button Login
if me.isAnonymous()
.have-an-account
span.spr(data-i18n="new_home.have_an_account")
a.login-button Login
#screenshot-lightbox.modal.fade(data-show="false")