Files
habitica/views/static/layout.jade
T
Matteo Pagliazzi 4c9da6883f refactor(bs3): static pages
works everything exeception made for the login modal, it opens but since this directive has had a lot of changes in angular-ui-bootstrap it will require more work (like all modals), @lefnire
2014-01-29 18:26:58 +01:00

44 lines
1.5 KiB
Plaintext

//Trick needed to pass 'env' to ./layout
block vars
doctype 5
html
head
block title
title=env.t('titleIndex')
link(rel='shortcut icon', href='#{env.getBuildUrl("favicon.ico")}?v=3')
meta(charset='utf-8')
meta(name='viewport', content='width=device-width, initial-scale=1.0')
!= env.getManifestFiles("static")
body
div(ng-app='habitrpgStatic',ng-controller='AuthCtrl',style='margin-top:60px;')
include ./login-modal
nav.navbar.navbar-inverse.navbar-fixed-top
.navbar-header
button.navbar-toggle(type='button', ng-click='isNavbarCollapsed = !isNavbarCollapsed', ng-init='isNavbarCollapsed = true')
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand(href='/static/front') HabitRPG
.collapse.navbar-collapse(collapse="isNavbarCollapsed")
ul.nav.navbar-nav
li(class='#{menuItem=="about" ? "active" : ""}')
a(href='/static/about') Learn More
li
a(href='http://blog.habitrpg.com/') Blog
li(class='#{menuItem=="plans" ? "active" : ""}')
a(href='/static/plans') Plans
//li(class='#{menuItem=="contact" ? "active" : ""}')
a(href='/static/contact') Contact
button#header-play-button.btn.btn-primary.navbar-btn.navbar-right(ng-click='playButtonClick()')=env.t('playButton')
.container
block content
include ../shared/footer