2016-04-27 19:07:48 -04:00
|
|
|
mixin accountLinks
|
|
|
|
li
|
|
|
|
a(href="/user/#{me.getSlugOrID()}", data-i18n="nav.profile")
|
|
|
|
li
|
|
|
|
a(href="/account/settings", data-i18n="play.settings")
|
|
|
|
unless me.isStudent()
|
|
|
|
li
|
|
|
|
a(href="/account/payments", data-i18n="account.payments")
|
2016-05-04 17:08:33 -04:00
|
|
|
if me.hasSubscription() || !(me.isTeacher() || me.isStudent())
|
2016-04-27 19:07:48 -04:00
|
|
|
li
|
|
|
|
a(href="/account/subscription", data-i18n="account.subscription")
|
|
|
|
unless me.isStudent()
|
|
|
|
li
|
|
|
|
a(href="/account/prepaid", data-i18n="account.prepaid_codes")
|
|
|
|
li
|
|
|
|
a#logout-button(data-i18n="login.log_out")
|
|
|
|
|
2016-02-16 12:57:58 -05:00
|
|
|
.style-flat
|
|
|
|
block header
|
2016-03-30 16:57:19 -04:00
|
|
|
nav#main-nav.navbar.navbar-default
|
2016-05-31 20:03:51 -04:00
|
|
|
.container-fluid.container
|
2016-02-16 12:57:58 -05:00
|
|
|
.row
|
2016-04-27 19:07:48 -04:00
|
|
|
.col-lg-12
|
2016-02-16 12:57:58 -05:00
|
|
|
.navbar-header
|
|
|
|
button.navbar-toggle.collapsed(data-toggle='collapse', data-target='#navbar-collapse' aria-expanded='false')
|
2016-03-16 17:49:19 -04:00
|
|
|
span.sr-only(data-i18n="home.toggle_nav")
|
2016-02-16 12:57:58 -05:00
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
a.navbar-brand(href="/")
|
|
|
|
img#logo-img(src="/images/pages/base/logo.png")
|
|
|
|
span.glyphicon.glyphicon-home
|
2016-03-16 17:49:19 -04:00
|
|
|
|
2016-02-16 12:57:58 -05:00
|
|
|
#navbar-collapse.collapse.navbar-collapse
|
2016-04-27 19:07:48 -04:00
|
|
|
ul.nav.navbar-nav
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-03-12 06:19:21 -05:00
|
|
|
a(href="/about", data-i18n="nav.about")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-04-23 19:54:24 -04:00
|
|
|
a(href="/courses", data-i18n="nav.students")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-03-30 16:57:19 -04:00
|
|
|
a(href="/teachers/classes", data-i18n="nav.teachers")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-03-12 06:19:21 -05:00
|
|
|
a(href="https://discourse.codecombat.com/", data-i18n="nav.forum")
|
2016-04-27 19:07:48 -04:00
|
|
|
if me.isAnonymous()
|
|
|
|
ul.nav.navbar-nav
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-03-12 06:19:21 -05:00
|
|
|
a#create-account-link.signup-button(data-i18n="login.sign_up")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-03-12 06:19:21 -05:00
|
|
|
a#login-link.login-button(data-i18n="login.log_in")
|
2016-04-27 19:07:48 -04:00
|
|
|
else
|
|
|
|
ul.nav.navbar-nav.hidden-lg
|
|
|
|
li.disabled
|
|
|
|
a
|
|
|
|
img.img-circle.img-circle-small.m-r-1(src=me.getPhotoURL() class=(me.isTeacher() ? 'border-navy' : ''))
|
|
|
|
span= me.displayName()
|
|
|
|
+accountLinks
|
2016-05-05 15:07:43 -04:00
|
|
|
|
2016-04-27 19:07:48 -04:00
|
|
|
ul.nav.navbar-nav
|
|
|
|
li.dropdown.hidden-xs.hidden-sm.hidden-md
|
2016-02-16 12:57:58 -05:00
|
|
|
a.dropdown-toggle(href="#", data-toggle="dropdown" role="button" aroa-haspopup="true" aria-expanded="false")
|
2016-03-30 19:20:37 -04:00
|
|
|
img.img-circle.img-circle-small.m-r-1(src=me.getPhotoURL() class=(me.isTeacher() ? 'border-navy' : ''))
|
2016-05-05 15:07:43 -04:00
|
|
|
span(data-i18n="nav.my_account")
|
2016-02-16 12:57:58 -05:00
|
|
|
ul.dropdown-menu
|
|
|
|
li.user-dropdown-header.text-center
|
|
|
|
span.user-level= me.level()
|
|
|
|
a(href="/user/#{me.getSlugOrID()}")
|
2016-03-30 19:20:37 -04:00
|
|
|
img.img-circle(src=me.getPhotoURL() class=(me.isTeacher() ? 'border-navy' : ''))
|
2016-02-16 12:57:58 -05:00
|
|
|
h5=me.displayName()
|
2016-04-27 19:07:48 -04:00
|
|
|
+accountLinks
|
2016-05-05 15:07:43 -04:00
|
|
|
|
2016-04-28 14:15:01 -04:00
|
|
|
ul.nav.navbar-nav
|
|
|
|
li
|
|
|
|
#language-dropdown-wrapper
|
2016-05-05 15:07:43 -04:00
|
|
|
select.language-dropdown.form-control
|
2016-04-27 19:07:48 -04:00
|
|
|
|
2016-03-30 16:57:19 -04:00
|
|
|
block page_nav
|
2016-02-16 12:57:58 -05:00
|
|
|
|
|
|
|
block outer_content
|
|
|
|
#site-content-area
|
|
|
|
block content
|
|
|
|
p If this is showing, you dun goofed
|
|
|
|
|
|
|
|
block footer
|
2016-03-17 20:13:15 -04:00
|
|
|
#character-lineup.text-center.m-t-3
|
2016-02-16 12:57:58 -05:00
|
|
|
img(src="/images/pages/home/character_lineup.png")
|
|
|
|
.container-fluid
|
|
|
|
#footer.small
|
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-sm-3
|
|
|
|
ul.list-unstyled
|
|
|
|
li
|
|
|
|
strong CodeCombat
|
|
|
|
li
|
2016-03-16 17:49:19 -04:00
|
|
|
a(href="/about", data-i18n="nav.about")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-03-16 17:49:19 -04:00
|
|
|
a(href="/Careers", data-i18n="nav.jobs")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
|
|
|
a(href="http://blog.codecombat.com/", data-i18n="nav.blog")
|
|
|
|
li
|
2016-03-16 17:49:19 -04:00
|
|
|
a(href="/legal", data-i18n="nav.legal")
|
|
|
|
|
2016-02-16 12:57:58 -05:00
|
|
|
.col-sm-3
|
|
|
|
ul.list-unstyled
|
|
|
|
li
|
2016-03-16 17:49:19 -04:00
|
|
|
strong(data-i18n="nav.schools")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-03-30 19:20:37 -04:00
|
|
|
a(href="/teachers/classes", data-i18n="nav.teachers")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-03-16 17:49:19 -04:00
|
|
|
a(href="https://sites.google.com/a/codecombat.com/teacher-guides/", data-i18n="nav.educator_wiki")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-03-30 19:20:37 -04:00
|
|
|
a(href="/teachers/demo", data-i18n="teachers_quote.title")
|
2016-03-16 17:49:19 -04:00
|
|
|
|
2016-02-16 12:57:58 -05:00
|
|
|
.col-sm-3
|
|
|
|
ul.list-unstyled
|
|
|
|
li
|
2016-03-16 17:49:19 -04:00
|
|
|
strong(data-i18n="nav.get_involved")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
|
|
|
a(href='/community', data-i18n="nav.community")
|
|
|
|
li
|
2016-03-16 17:49:19 -04:00
|
|
|
a(href="/contribute", data-i18n="nav.contribute")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
|
|
|
a(href=view.forumLink(), data-i18n="nav.forum")
|
|
|
|
li
|
2016-03-16 17:49:19 -04:00
|
|
|
a(href="/play/ladder", data-i18n="home.multiplayer")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-03-16 17:49:19 -04:00
|
|
|
a(href="https://github.com/codecombat/codecombat", data-i18n="nav.open_source")
|
2016-02-16 12:57:58 -05:00
|
|
|
.col-sm-3
|
|
|
|
ul.list-unstyled
|
|
|
|
li
|
2016-03-16 17:49:19 -04:00
|
|
|
strong(data-i18n="nav.support")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
2016-03-16 17:49:19 -04:00
|
|
|
a(href="https://discourse.codecombat.com/t/faq-check-before-posting/1027", data-i18n="nav.faqs")
|
2016-02-16 12:57:58 -05:00
|
|
|
li
|
|
|
|
a(tabindex=-1, data-toggle="coco-modal", data-target="core/ContactModal", data-i18n="nav.contact")
|
|
|
|
li
|
|
|
|
a(href="https://www.facebook.com/codecombat", data-i18n="nav.facebook")
|
|
|
|
li
|
|
|
|
a(href="https://twitter.com/codecombat", data-i18n="nav.twitter")
|
2016-03-16 17:49:19 -04:00
|
|
|
|
2016-02-16 12:57:58 -05:00
|
|
|
#final-footer.small.text-center
|
|
|
|
| Copyright ©2016 CodeCombat. All Rights Reserved.
|
|
|
|
br.hidden-lg.hidden-md
|
|
|
|
img(src="/images/pages/base/logo.png" alt="CodeCombat")
|
|
|
|
br.hidden-lg.hidden-md
|
2016-03-16 17:49:19 -04:00
|
|
|
span.spr(data-i18n="nav.help_pref")
|
2016-03-18 14:14:10 -04:00
|
|
|
- var supportEmail = (me.get('preferredLanguage', true) || 'en-US').split('-')[0] == 'nl' ? 'klantenservice@codecombat.nl' : 'team@codecombat.com';
|
|
|
|
a(href="mailto:" + supportEmail)= supportEmail
|
2016-03-16 17:49:19 -04:00
|
|
|
span.spl(data-i18n="nav.help_suff")
|