codecombat/app/templates/base.jade

99 lines
4.4 KiB
Text
Raw Normal View History

block header
#site-nav
2015-08-08 08:35:08 -04:00
block site_nav
a(href="/")
2015-08-08 08:35:08 -04:00
img#nav-logo(src="/images/pages/base/logo.png", title="CodeCombat - Learn how to code by playing a game", alt="CodeCombat")
div#site-nav-links
a(href="/")
img#small-nav-logo(src="/images/pages/base/logo.png", title="CodeCombat - Learn how to code by playing a game", alt="CodeCombat")
a(href="/")
span.glyphicon.glyphicon-home
2016-03-16 17:49:19 -04:00
a(href='/teachers', data-i18n="nav.teachers")
a(href='/courses', data-i18n="nav.students")
a(href=view.forumLink(), data-i18n="nav.forum")
2015-08-08 08:35:08 -04:00
a(href='/community', data-i18n="nav.community")
2015-08-08 08:35:08 -04:00
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
span.spl.spr(data-i18n="nav.account" href="/account")
span.caret
ul.dropdown-menu(role="menu")
li.user-dropdown-header
span.user-level= me.level()
a(href="/user/#{me.getSlugOrID()}")
div.img-circle(style="background-image: url(#{me.getPhotoURL()})")
h3=me.displayName()
li
2016-03-09 17:40:52 -05:00
a(href="/user/#{me.getSlugOrID()}", data-i18n="nav.profile")
2015-08-08 08:35:08 -04:00
li
a(href="/account/settings", data-i18n="play.settings")
2016-03-09 17:40:52 -05:00
unless me.isStudent()
li
a(href="/account/payments", data-i18n="account.payments")
if me.hasSubscription() || !(me.isTeacher() || me.isStudent())
2016-03-09 17:40:52 -05:00
li
a(href="/account/subscription", data-i18n="account.subscription")
unless me.isStudent()
li
a(href="/account/prepaid", data-i18n="account.prepaid_codes")
2015-08-08 08:35:08 -04:00
li
a#logout-button(data-i18n="login.log_out")
2015-08-08 08:35:08 -04: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
2015-09-25 13:03:44 -04: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
#footer-links
a(href="/about", data-i18n="nav.about")
2016-03-16 17:49:19 -04:00
a(tabindex=-1, data-toggle="coco-modal", data-target="core/ContactModal", data-i18n="nav.contact")
2015-05-12 18:24:03 -04:00
a(href='http://blog.codecombat.com/', data-i18n="nav.blog")
2016-03-16 17:49:19 -04:00
a(href='https://jobs.lever.co/codecombat', tabindex=-1, data-i18n="nav.careers")
a(href='/legal', tabindex=-1, data-i18n="nav.legal")
a(href='/privacy', tabindex=-1, data-i18n="legal.privacy_title")
a(href='/contribute', tabindex=-1, data-i18n="nav.contribute")
a(href='/play/ladder', tabindex=-1, data-i18n="home.multiplayer")
if me.isAdmin()
2016-03-16 17:49:19 -04:00
a(href='/admin') Admin
2014-01-03 13:32:13 -05: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
2016-03-16 17:49:19 -04:00
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")
iframe.github-star-button(src="https://ghbtns.com/github-btn.html?user=codecombat&repo=codecombat&type=watch&count=true", allowtransparency="true", frameborder="0", scrolling="0", width="110", height="20")
2015-09-25 13:03:44 -04:00
#footer-credits
2015-09-25 13:03:44 -04:00
span
span © All Rights Reserved
br
2014-12-29 11:45:55 -05:00
span CodeCombat 2015
img#footer-logo(src="/images/pages/base/logo.png", alt="CodeCombat")
2015-09-25 13:03:44 -04:00
span
span Site Design by
br
a(href="http://www.fullyillustrated.com/") Fully Illustrated
2015-03-16 11:48:52 -04:00
//a.firebase-bade(href="https://www.firebase.com/") // Not using right now
// img(src="/images/pages/base/firebase.png", alt="Powered by Firebase")
2014-11-27 12:44:08 -05:00
block extra_footer_content