habitica-self-host/views/index.jade

110 lines
5.4 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
link(rel='shortcut icon' href='/favicon.ico?v=1')
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
link(rel='stylesheet', href='/bower_components/bootstrap/docs/assets/css/bootstrap.css')
2013-09-06 19:39:18 +00:00
link(rel='stylesheet', href='/build/app.css')
// HabitRPG Shared
2013-09-03 15:12:17 +00:00
link(rel='stylesheet', href='/bower_components/habitrpg-shared/dist/spritesheets.css')
2013-09-06 17:19:43 +00:00
- if(env.NODE_ENV == 'production'){
script(type='text/javascript', src='build/app.js')
- }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/bootstrap-growl/jquery.bootstrap-growl.min.js')
script(type='text/javascript', src='/bower_components/angular/angular.min.js')
script(type='text/javascript', src='/bower_components/angular-sanitize/angular-sanitize.min.js')
script(type='text/javascript', src='/bower_components/angular-route/angular-route.min.js')
script(type='text/javascript', src='/bower_components/angular-resource/angular-resource.min.js')
script(type='text/javascript', src='/bower_components/angular-ui/build/angular-ui.min.js')
script(type='text/javascript', src='/bower_components/angular-ui-utils/modules/keypress/keypress.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')
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/characterCtrl.js')
script(type='text/javascript', src='/js/controllers/menuCtrl.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/statsCtrl.js')
script(type='text/javascript', src='/js/controllers/tasksCtrl.js')
script(type='text/javascript', src='/js/controllers/taskDetailsCtrl.js')
script(type='text/javascript', src='/js/controllers/filtersCtrl.js')
script(type='text/javascript', src='/js/controllers/userAvatarCtrl.js')
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')
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
#notification-area(ng-controller='NotificationCtrl')
#wrap
2013-08-28 02:37:56 +00:00
// Errors
2013-09-02 22:40:20 +00:00
.unstyled.alert.alert-error(ng-repeat='error in flash.errors track by $index') {{error}}
.unstyled.alert.alert-error(ng-repeat='error in flash.warnings track by $index') {{error}}
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='page.charts.exp')
#main(ng-view)
include ./shared/footer
2013-08-28 04:20:50 +00:00
// Modal backdrop for when loading big stuff
#loading-indicator(style='display:none;')
.modal-backdrop
h1(style='position:absolute;top:50%;left:45%;color:white;z-index:9000') Loading...