2014-11-22 21:51:07 -05:00
|
|
|
block header
|
|
|
|
#site-nav
|
2014-11-24 18:36:55 -05:00
|
|
|
a(href="/")
|
|
|
|
img#nav-logo(src="/images/pages/base/logo.png", title="CodeCombat - Learn how to code by playing a game", alt="CodeCombat")
|
2014-11-22 21:51:07 -05:00
|
|
|
div#site-nav-links
|
2014-11-24 18:36:55 -05:00
|
|
|
a(href="/")
|
|
|
|
img#small-nav-logo(src="/images/pages/base/logo.png", title="CodeCombat - Learn how to code by playing a game", alt="CodeCombat")
|
2014-11-22 21:51:07 -05:00
|
|
|
a(href="/")
|
|
|
|
span.glyphicon.glyphicon-home
|
|
|
|
a(href="/about", data-i18n="nav.about")
|
2014-11-30 15:27:34 -05:00
|
|
|
a(href='/play/ladder', data-i18n="home.multiplayer").multiplayer-nav-link
|
2014-11-22 21:51:07 -05:00
|
|
|
a(href='/community', data-i18n="nav.community")
|
|
|
|
a(href='http://blog.codecombat.com/', data-i18n="nav.blog")
|
|
|
|
a(href='http://discourse.codecombat.com/', data-i18n="nav.forum")
|
|
|
|
|
|
|
|
if me.get('anonymous') === false
|
|
|
|
span.dropdown
|
|
|
|
button.btn.btn-sm.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-11-25 13:39:46 -05:00
|
|
|
span.spl.spr(data-i18n="nav.account" href="/account")
|
2014-11-22 21:51:07 -05:00
|
|
|
span.caret
|
|
|
|
ul.dropdown-menu(role="menu")
|
|
|
|
li.user-dropdown-header
|
|
|
|
span.user-level= me.level()
|
|
|
|
a(href="/user/#{me.getSlugOrID()}")
|
2015-02-05 14:00:02 -05:00
|
|
|
div.img-circle(style="background-image: url(#{me.getPhotoURL()})")
|
2014-11-22 21:51:07 -05:00
|
|
|
h3=me.displayName()
|
2014-11-25 13:39:46 -05:00
|
|
|
li
|
|
|
|
a(href="/user/#{me.getSlugOrID()}" data-i18n="nav.profile")
|
|
|
|
li
|
|
|
|
a(href="/account/settings", data-i18n="play.settings")
|
|
|
|
li
|
|
|
|
a(href="/account/payments", data-i18n="account.payments")
|
2014-12-10 16:42:12 -05:00
|
|
|
li
|
|
|
|
a(href="/account/subscription", data-i18n="account.subscription")
|
2014-11-25 13:39:46 -05:00
|
|
|
li
|
|
|
|
a#logout-button(data-i18n="login.log_out")
|
2014-11-22 21:51:07 -05:00
|
|
|
|
|
|
|
else
|
|
|
|
button.btn.btn-sm.btn-primary.header-font.signup-button(data-i18n="login.sign_up")
|
|
|
|
button.btn.btn-sm.btn-default.header-font.login-button(data-i18n="login.log_in")
|
|
|
|
select.language-dropdown.form-control
|
|
|
|
|
2014-11-22 20:38:01 -05:00
|
|
|
|
|
|
|
block outer_content
|
|
|
|
#site-content-area
|
|
|
|
block content
|
|
|
|
p If this is showing, you dun goofed
|
|
|
|
.achievement-corner
|
|
|
|
|
|
|
|
|
|
|
|
block footer
|
|
|
|
#site-footer
|
|
|
|
img#footer-background(src="/images/pages/base/nav_background.png")
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-11-22 20:38:01 -05:00
|
|
|
#footer-links
|
|
|
|
a(href='/contribute', tabindex=-1, data-i18n="nav.contribute") Contribute
|
|
|
|
a(href='/legal', tabindex=-1, data-i18n="nav.legal") Legal
|
2014-12-29 11:45:55 -05:00
|
|
|
a(tabindex=-1, data-toggle="coco-modal", data-target="core/ContactModal", data-i18n="nav.contact") Contact
|
2014-11-22 20:38:01 -05:00
|
|
|
a(href='/teachers', data-i18n="nav.teachers") Teachers
|
2014-11-22 21:45:11 -05:00
|
|
|
a(href="/play-old", data-i18n="play.older_campaigns") Older Campaigns
|
2014-11-22 20:38:01 -05:00
|
|
|
if me.isAdmin()
|
|
|
|
a(href='/admin', data-i18n="nav.admin") Admin
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-10-15 16:43:26 -04:00
|
|
|
if usesSocialMedia
|
|
|
|
.share-buttons
|
|
|
|
if !isIE
|
|
|
|
.g-plusone(data-href="http://codecombat.com", data-size="medium")
|
|
|
|
.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}")
|
|
|
|
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-11-22 20:38:01 -05:00
|
|
|
|
|
|
|
#footer-credits
|
|
|
|
a.mixpanel-badge(href="https://mixpanel.com/f/partner")
|
|
|
|
img(src="//cdn.mxpnl.com/site_media/images/partner/badge_light.png", alt="Mobile Analytics")
|
|
|
|
span
|
|
|
|
span © All Rights Reserved
|
|
|
|
br
|
2014-12-29 11:45:55 -05:00
|
|
|
span CodeCombat 2015
|
2014-11-22 20:38:01 -05:00
|
|
|
img#footer-logo(src="/images/pages/base/logo.png", alt="CodeCombat")
|
|
|
|
span
|
|
|
|
span Site Design by
|
|
|
|
br
|
|
|
|
a(href="http://www.fullyillustrated.com/") Fully Illustrated
|
|
|
|
a.firebase-bade(href="https://www.firebase.com/")
|
|
|
|
img(src="/images/pages/base/firebase.png", alt="Powered by Firebase")
|
2014-11-27 12:44:08 -05:00
|
|
|
|
|
|
|
block extra_footer_content
|