2014-01-03 13:32:13 -05:00
|
|
|
body
|
|
|
|
#fb-root
|
|
|
|
block header
|
2014-08-30 23:27:58 -04:00
|
|
|
.nav.navbar.navbar-fixed-top#top-nav
|
2014-04-03 18:10:24 -04:00
|
|
|
.content.clearfix
|
|
|
|
.navbar-header
|
2014-08-30 23:27:58 -04:00
|
|
|
button.navbar-toggle(type="button" data-toggle="collapse" data-target=".navbar-nav.collapse")
|
2014-04-03 18:10:24 -04:00
|
|
|
span.sr-only Toggle navigation
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
2014-08-30 23:27:58 -04:00
|
|
|
|
2014-01-23 21:49:29 -05:00
|
|
|
a.navbar-brand(href='/')
|
2014-03-21 20:06:51 -04:00
|
|
|
img(src="/images/pages/base/logo.png", title="CodeCombat - Learn how to code by playing a game", alt="CodeCombat")
|
2014-01-08 05:15:52 -05:00
|
|
|
|
2014-08-30 23:27:58 -04:00
|
|
|
ul(class='navbar-link-text').nav.navbar-nav.navbar-collapse.collapse
|
2014-07-14 08:20:13 -04:00
|
|
|
if me.get('anonymous') === false
|
|
|
|
li.dropdown
|
|
|
|
button.btn.btn-primary.navbuttontext.header-font.dropdown-toggle(href="#", data-toggle="dropdown")
|
|
|
|
if me.get('photoURL')
|
|
|
|
img.account-settings-image(src=me.getPhotoURL(18), alt="")
|
|
|
|
else
|
|
|
|
i.glyphicon.glyphicon-user
|
2014-07-16 06:39:18 -04:00
|
|
|
.navbuttontext-account(data-i18n="nav.account" href="/account") Account
|
2014-07-14 08:20:13 -04:00
|
|
|
span.caret
|
|
|
|
ul.dropdown-menu(role="menu")
|
|
|
|
li.user-dropdown-header
|
2014-08-12 07:41:14 -04:00
|
|
|
span.user-level= me.level()
|
|
|
|
a(href="/user/#{me.getSlugOrID()}")
|
2014-07-22 06:14:21 -04:00
|
|
|
img.img-circle(src="#{me.getPhotoURL()}" alt="")
|
2014-08-12 07:41:14 -04:00
|
|
|
h3=me.displayName()
|
2014-07-14 08:20:13 -04:00
|
|
|
li.user-dropdown-body
|
|
|
|
.col-xs-4.text-center
|
2014-08-12 07:41:14 -04:00
|
|
|
a(href="/user/#{me.getSlugOrID()}" data-i18n="nav.profile") Profile
|
2014-07-14 08:20:13 -04:00
|
|
|
.col-xs-4.text-center
|
2014-08-12 07:41:14 -04:00
|
|
|
a(href="/user/#{me.getSlugOrID()}/stats" data-i18n="nav.stats") Stats
|
2014-07-14 08:20:13 -04:00
|
|
|
.col-xs-4.text-center
|
2014-08-12 07:41:14 -04:00
|
|
|
a.disabled(data-i18n="nav.code") Code
|
2014-07-14 08:20:13 -04:00
|
|
|
li.user-dropdown-footer
|
2014-07-14 08:56:44 -04:00
|
|
|
.pull-left
|
2014-08-12 07:41:14 -04:00
|
|
|
a.btn.btn-default.btn-flat(href="/account" data-i18n="nav.account") Account
|
2014-07-14 08:56:44 -04:00
|
|
|
.pull-right
|
2014-07-16 06:39:18 -04:00
|
|
|
button#logout-button.btn.btn-default.btn-flat(data-i18n="login.log_out") Log Out
|
|
|
|
else
|
|
|
|
li
|
|
|
|
button.btn.btn-primary.navbuttontext.header-font.auth-button
|
|
|
|
span(data-i18n="login.log_in") Log In
|
|
|
|
span.spr.spl /
|
|
|
|
span(data-i18n="login.sign_up") Create Account
|
2014-08-30 23:27:58 -04:00
|
|
|
li
|
|
|
|
select.language-dropdown
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
block outer_content
|
2014-07-17 12:22:52 -04:00
|
|
|
#outer-content-wrapper(class=showBackground ? 'show-background' : '')
|
2014-03-14 18:24:36 -04:00
|
|
|
#intermediate-content-wrapper
|
|
|
|
#inner-content-wrapper
|
|
|
|
.main-content-area
|
|
|
|
block content
|
|
|
|
p If this is showing, you dun goofed
|
2014-08-03 17:58:51 -04:00
|
|
|
.achievement-corner
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
block footer
|
2014-04-02 17:40:06 -04:00
|
|
|
.footer.clearfix
|
2014-01-03 13:32:13 -05:00
|
|
|
.content
|
2014-01-14 01:29:58 -05:00
|
|
|
p.footer-link-text
|
2014-09-01 12:11:10 -04:00
|
|
|
if pathname == "/" || (me.get('permissions', true)).indexOf('employer') != -1
|
2014-01-14 01:29:58 -05:00
|
|
|
a(href='/employers', title='Home', tabindex=-1, data-i18n="nav.employers") Employers
|
|
|
|
else
|
|
|
|
a(href='/', title='Home', tabindex=-1, data-i18n="nav.home") Home
|
2014-09-25 17:38:02 -04:00
|
|
|
a(href='/play/ladder', title='Multiplayer', tabindex=-1) Multiplayer
|
2014-01-03 13:32:13 -05:00
|
|
|
a(href='/contribute', title='Contribute', tabindex=-1, data-i18n="nav.contribute") Contribute
|
|
|
|
a(href='/legal', title='Legal', tabindex=-1, data-i18n="nav.legal") Legal
|
|
|
|
a(href='/about', title='About', tabindex=-1, data-i18n="nav.about") About
|
2014-07-23 10:02:45 -04:00
|
|
|
a(title='Contact', tabindex=-1, data-toggle="coco-modal", data-target="modal/ContactModal", data-i18n="nav.contact") Contact
|
2014-04-18 12:53:28 -04:00
|
|
|
a(href='http://blog.codecombat.com/', data-i18n="nav.blog") Blog
|
|
|
|
a(href='http://discourse.codecombat.com/', data-i18n="nav.forum") Forum
|
2014-04-12 02:07:48 -04:00
|
|
|
if me.isAdmin()
|
|
|
|
a(href='/admin', data-i18n="nav.admin") Admin
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
.share-buttons
|
2014-09-24 15:17:08 -04:00
|
|
|
if !isIE
|
|
|
|
.g-plusone(data-href="http://codecombat.com", data-size="medium")
|
2014-01-03 13:32:13 -05:00
|
|
|
.fb-like(data-href="https://www.facebook.com/codecombat", data-send="false", data-layout="button_count", data-width="350", data-show-faces="true", data-ref="coco_footer_#{fbRef}")
|
2014-09-24 15:17:08 -04:00
|
|
|
if !isIE
|
|
|
|
a.twitter-follow-button(href="https://twitter.com/CodeCombat", data-show-count="true", data-show-screen-name="false", data-dnt="true", data-align="right", data-i18n="nav.twitter_follow") Follow
|
|
|
|
iframe.github-star-button(src="http://ghbtns.com/github-btn.html?user=codecombat&repo=codecombat&type=watch&count=true", allowtransparency="true", frameborder="0", scrolling="0", width="110", height="20")
|
|
|
|
|
2014-01-07 02:45:33 -05:00
|
|
|
.partner-badges
|
2014-01-03 13:32:13 -05:00
|
|
|
a.mixpanel-badge(href="https://mixpanel.com/f/partner")
|
|
|
|
img(src="//cdn.mxpnl.com/site_media/images/partner/badge_light.png", alt="Mobile Analytics")
|
2014-01-07 02:45:33 -05:00
|
|
|
a.firebase-bade(href="https://www.firebase.com/")
|
2014-03-31 14:09:44 -04:00
|
|
|
img(src="/images/pages/base/firebase.png", alt="Powered by Firebase")
|