forked from prose/prose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.html
47 lines (44 loc) · 1.54 KB
/
default.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
---
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'/>
<title>Prose · A Content Editor for GitHub</title>
<link rel='shortcut icon' href='/{{site.baseurl}}images/favicon.ico' type='image/x-icon' />
<link rel='stylesheet' href='/{{site.baseurl}}fonts/open-sans.css'>
<link rel='stylesheet' href='/{{site.baseurl}}app.css'>
{% include templates.html %}
<script src='/{{site.baseurl}}boot.js'></script>
<script>
(function(config, models, views, routers, utils, templates) {
$(function() {
if (authenticate()) {
loadApplication(function(err, data) {
// Start the engines
window.app.instance = new views.Application({ el: '#container', model: data }).render();
if (err) return app.instance.notify('error', 'Error while loading data from Github. This might be a temporary issue. Please try again later.');
// Initialize router
window.router = new routers.Application({});
// Start responding to routes
Backbone.history.start();
});
}
});
}).apply(this, window.args);
</script>
</head>
<body>
<div id='container'>
<div id='main'>{{content}}</div>
</div>
<div id='footer'>
<div class="footer-content">
<a class='help' href="/{{site.baseurl}}help.html">Help</a><a class='about' href="/{{site.baseurl}}about.html">About</a>
<div class="fr brand">
<a href="/{{site.baseurl}}#prose/prose/blob/gh-pages/README.md">Prose 0.4.0</a>
</div>
</div>
</div>
</body>
</html>