codecombat/app/templates/base.jade

85 lines
4.4 KiB
Text
Raw Normal View History

2014-01-03 13:32:13 -05:00
body
#fb-root
block header
2014-04-03 18:10:24 -04:00
.nav.navbar.navbar-fixed-top#mobile-nav
.content.clearfix
.navbar-header
button.navbar-toggle(type="button" data-toggle="collapse" data-target="#collapsible-navbar")
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand(href='/')
img(src="/images/pages/base/logo.png", title="CodeCombat - Learn how to code by playing a game", alt="CodeCombat")
.collapse.navbar-collapse#collapsible-navbar
ul.nav.navbar-nav
li.play
a.header-font(href='/play', data-i18n="nav.play") Levels
li
a.header-font(href='/community', data-i18n="nav.community") Community
2014-04-03 18:10:24 -04:00
2014-01-27 19:20:13 -05:00
.nav.navbar.navbar-fixed-top#top-nav
.content.clearfix
.navbar-header
a.navbar-brand(href='/')
img(src="/images/pages/base/logo.png", title="CodeCombat - Learn how to code by playing a game", alt="CodeCombat")
select.language-dropdown
2014-01-03 13:32:13 -05:00
if me.get('anonymous') === false
2014-03-30 20:24:07 -04:00
button.btn.btn-primary.navbuttontext.header-font#logout-button(data-i18n="login.log_out") Log Out
a.btn.btn-primary.navbuttontext.header-font(href=me.get('jobProfile') ? "/account/profile/#{me.id}" : "/account/settings")
div.navbuttontext-account(data-i18n="nav.account") Account
if me.get('photoURL')
img.account-settings-image(src=me.getPhotoURL(18), alt="")
else
span.glyphicon.glyphicon-user
2014-01-03 13:32:13 -05:00
else
2014-03-30 20:24:07 -04:00
button.btn.btn-primary.navbuttontext.header-font(data-toggle="coco-modal", data-target="modal/signup", data-i18n="login.sign_up") Create Account
button.btn.btn-primary.navbuttontext.header-font(data-toggle="coco-modal", data-target="modal/login", data-i18n="login.log_in") Log In
ul(class='navbar-link-text').nav.navbar-nav.pull-right
li.play
2014-03-31 14:09:44 -04:00
a.header-font(href='/play', data-i18n="nav.play") Levels
li
a.header-font(href='/community', data-i18n="nav.community") Community
2014-01-03 13:32:13 -05:00
block outer_content
#outer-content-wrapper
#intermediate-content-wrapper
#inner-content-wrapper
.main-content-area
block content
p If this is showing, you dun goofed
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
if pathname == "/" || (me.get('permissions') || []).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-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
a(title='Contact', tabindex=-1, data-toggle="coco-modal", data-target="modal/contact", data-i18n="nav.contact") Contact
a(href='/editor', data-i18n="nav.editor") Editor
a(href='http://blog.codecombat.com/', data-i18n="nav.blog") Blog
a(href='http://discourse.codecombat.com/', data-i18n="nav.forum") Forum
if me.isAdmin()
a(href='/admin', data-i18n="nav.admin") Admin
2014-01-03 13:32:13 -05:00
.share-buttons
.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}")
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
2014-01-13 21:19:28 -05:00
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")
.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")
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")