habitica-self-host/views/index.jade

111 lines
5.7 KiB
Text
Raw Normal View History

doctype 5
html
head
title HabitRPG | Your Life The Role Playing Game
2013-08-25 01:06:37 +00:00
2013-09-07 11:55:48 +00:00
// ?v=1 needed to force refresh
2013-09-10 12:40:00 +00:00
link(rel='shortcut icon' href='/#{env.getBuildUrl("favicon.ico")}?v=2')
2013-09-07 11:55:48 +00:00
script(type='text/javascript').
window.env = !{JSON.stringify(env)};
style.
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
display: none;
}
// CSS Remember to update also in Grunfile.js cssmin task!
2013-09-10 12:40:00 +00:00
link(rel='stylesheet', href='/#{env.getBuildUrl("bower_components/bootstrap/docs/assets/css/bootstrap.css")}')
2013-09-10 12:40:00 +00:00
link(rel='stylesheet', href='/#{env.getBuildUrl("app.css")}')
// HabitRPG Shared
2013-09-10 12:40:00 +00:00
link(rel='stylesheet', href='/#{env.getBuildUrl("bower_components/habitrpg-shared/dist/spritesheets.css")}')
2013-09-06 17:19:43 +00:00
- if(env.NODE_ENV == 'production'){
2013-09-10 12:40:00 +00:00
script(type='text/javascript', src='/#{env.getBuildUrl("app.js")}')
2013-09-06 17:19:43 +00:00
- }else{
// Remember to update the file list in Gruntfile.js!
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/bower_components/jquery/jquery.min.js')
script(type='text/javascript', src='/bower_components/jquery.cookie/jquery.cookie.js')
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/bower_components/bootstrap-growl/jquery.bootstrap-growl.min.js')
script(type='text/javascript', src='/bower_components/bootstrap-tour/build/js/bootstrap-tour.min.js')
script(type='text/javascript', src='/bower_components/angular/angular.js')
script(type='text/javascript', src='/bower_components/angular-ui-router/release/angular-ui-router.js')
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/bower_components/angular-sanitize/angular-sanitize.min.js')
script(type='text/javascript', src='/bower_components/marked/lib/marked.js')
script(type='text/javascript', src='/bower_components/angular-resource/angular-resource.js')
script(type='text/javascript', src='/bower_components/angular-ui/build/angular-ui.js')
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/bower_components/angular-ui-utils/modules/keypress/keypress.js')
script(type='text/javascript', src='/bower_components/angular-loading-bar/build/loading-bar.js')
2013-09-06 17:19:43 +00:00
// we'll remove this once angular-bootstrap is fixed
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/bower_components/bootstrap/docs/assets/js/bootstrap.min.js')
script(type='text/javascript', src='/bower_components/angular-bootstrap/ui-bootstrap.min.js')
script(type='text/javascript', src='/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js')
2013-09-06 17:19:43 +00:00
// Sortable
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/bower_components/jquery-ui/ui/minified/jquery.ui.core.min.js')
script(type='text/javascript', src='/bower_components/jquery-ui/ui/minified/jquery.ui.widget.min.js')
script(type='text/javascript', src='/bower_components/jquery-ui/ui/minified/jquery.ui.mouse.min.js')
script(type='text/javascript', src='/bower_components/jquery-ui/ui/minified/jquery.ui.sortable.min.js')
2013-09-06 17:19:43 +00:00
// habitrpg-shared
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/bower_components/habitrpg-shared/dist/habitrpg-shared.js')
2013-09-06 17:19:43 +00:00
// app
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/js/app.js')
script(type='text/javascript', src='/js/services/authServices.js')
script(type='text/javascript', src='/js/services/notificationServices.js')
script(type='text/javascript', src='/js/services/sharedServices.js')
script(type='text/javascript', src='/js/services/userServices.js')
script(type='text/javascript', src='/js/services/groupServices.js')
script(type='text/javascript', src='/js/services/memberServices.js')
script(type='text/javascript', src='/js/services/guideServices.js')
script(type='text/javascript', src='/js/services/challengeServices.js')
2013-09-06 17:19:43 +00:00
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/js/filters/filters.js')
2013-09-06 17:19:43 +00:00
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/js/directives/directives.js')
2013-09-06 17:19:43 +00:00
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/js/controllers/authCtrl.js')
script(type='text/javascript', src='/js/controllers/notificationCtrl.js')
script(type='text/javascript', src='/js/controllers/rootCtrl.js')
script(type='text/javascript', src='/js/controllers/settingsCtrl.js')
script(type='text/javascript', src='/js/controllers/headerCtrl.js')
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/js/controllers/tasksCtrl.js')
script(type='text/javascript', src='/js/controllers/filtersCtrl.js')
script(type='text/javascript', src='/js/controllers/userCtrl.js')
2013-09-06 19:39:18 +00:00
script(type='text/javascript', src='/js/controllers/groupsCtrl.js')
script(type='text/javascript', src='/js/controllers/petsCtrl.js')
script(type='text/javascript', src='/js/controllers/inventoryCtrl.js')
script(type='text/javascript', src='/js/controllers/marketCtrl.js')
script(type='text/javascript', src='/js/controllers/footerCtrl.js')
script(type='text/javascript', src='/js/controllers/challengesCtrl.js')
2013-09-06 17:19:43 +00:00
-}
//webfonts
link(href='//fonts.googleapis.com/css?family=Lato:300,400,700,400italic,700italic', rel='stylesheet', type='text/css')
meta(name='viewport', content='width=device-width')
meta(name='apple-mobile-web-app-capable', content='yes')
body(ng-app="habitrpg", ng-controller="RootCtrl", ng-cloak)
div(ng-controller='GroupsCtrl')
include ./shared/modals/index
include ./shared/header/header
include ./shared/tasks/lists
include ./main/index
include ./options/index
#notification-area(ng-controller='NotificationCtrl')
#wrap
2013-08-28 02:37:56 +00:00
//if they hide the header, we still need user-menu visible
div(ng-if='user.preferences.hideHeader')
include ./shared/header/menu
2013-08-28 23:11:29 +00:00
.exp-chart(ng-show='charts.exp')
#main(ui-view)
2013-10-30 18:35:30 +00:00
include ./shared/footer