2012-09-08 03:02:21 +08:00
|
|
|
!!! 5
|
|
|
|
html
|
|
|
|
head
|
2013-08-01 23:27:22 +08:00
|
|
|
block head
|
|
|
|
title= title
|
2013-09-24 21:13:09 +08:00
|
|
|
meta(name="viewport", content="width=device-width, initial-scale=1.0")
|
2013-11-01 01:40:17 +08:00
|
|
|
link(rel="stylesheet", href="vendor/css/jquery-ui-1.9.2.custom.min.css")
|
|
|
|
link(rel="stylesheet", href="vendor/css/reset.css")
|
|
|
|
- if (h_environment == "development")
|
|
|
|
link(rel="stylesheet", href="vendor/css/font-awesome.css")
|
|
|
|
link(rel="stylesheet", href="vendor/css/bootstrap.css")
|
|
|
|
- else
|
|
|
|
link(rel="stylesheet", href="vendor/css/font-awesome.min.css")
|
|
|
|
link(rel="stylesheet", href="vendor/css/bootstrap.min.css")
|
2013-10-31 22:50:52 +08:00
|
|
|
!= css('layout')
|
2013-08-01 23:27:22 +08:00
|
|
|
|
|
|
|
body
|
|
|
|
block content
|
|
|
|
#container
|
|
|
|
|
|
|
|
script(src='/js/lib/require/require-min.js')
|
|
|
|
|
|
|
|
// we add a javascript block to pass information from the server to the client using
|
|
|
|
// javascript variables in the module "globals"
|
|
|
|
- if (typeof(meetings) == 'undefined')
|
|
|
|
- meetings = []
|
2013-08-17 06:00:15 +08:00
|
|
|
script(type='text/javascript').
|
2013-08-01 23:27:22 +08:00
|
|
|
define('globals', function() {
|
|
|
|
server = window.location.protocol + '//' + window.location.host;
|
|
|
|
server = server.replace(/:\d+/, ''); // remove :port
|
|
|
|
if (server[server.length-1] != '/')
|
|
|
|
server = server + '/';
|
|
|
|
return {
|
|
|
|
bootstrappedMeetings: !{JSON.stringify(meetings)},
|
|
|
|
presentationServer: server
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
script(src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js')
|
|
|
|
script(src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js')
|
|
|
|
- if (h_environment == "development")
|
2013-11-01 01:40:17 +08:00
|
|
|
script(src='/vendor/js/bootstrap.js')
|
2013-08-01 23:27:22 +08:00
|
|
|
script(src='/js/main.js')
|
|
|
|
- else
|
2013-11-01 01:40:17 +08:00
|
|
|
script(src='/vendor/js/bootstrap.min.js')
|
2013-08-01 23:27:22 +08:00
|
|
|
script(src='/js/main-dist.js')
|