bc513c72f6
PRESENTATION_SERVER was moved to a better place. It was kind of hardcoded in the client, now it is passed to the client by the server, so it can be easily configured in the server if needed in the future.
39 lines
1.2 KiB
Plaintext
Executable File
39 lines
1.2 KiB
Plaintext
Executable File
!!! 5
|
|
html
|
|
head
|
|
block head
|
|
title= title
|
|
link(rel="stylesheet", href="css/jquery-ui-1.9.2.custom.min.css")
|
|
link(rel="stylesheet", href="css/reset.css")
|
|
link(rel="stylesheet", href="css/font-awesome.css")
|
|
link(rel="stylesheet", href="css/layout.css")
|
|
|
|
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 = []
|
|
script(type='text/javascript')
|
|
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")
|
|
script(src='/js/main.js')
|
|
- else
|
|
script(src='/js/main-dist.js')
|