forked from destrangis/rsted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
52 lines (45 loc) · 2.02 KB
/
base.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
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
<meta charset="UTF-8">
<title>{% block title %}Online reStructuredText editor{% endblock %}</title>
<link rel="stylesheet" href="{{ request.script_root }}{{ MEDIA_URL }}style/base.css"/>
<link rel="stylesheet" href="{{ request.script_root }}{{ MEDIA_URL }}style/site.css"/>
<link rel="stylesheet" href="{{ request.script_root }}{{ MEDIA_URL }}style/menu.css"/>
<script src="{{ request.script_root }}{{ MEDIA_URL }}scripts/jquery-1.6.4.min.js"></script>
<script src="{{ request.script_root }}{{ MEDIA_URL }}scripts/jquery.layout.min-1.2.0.js"></script>
{% endblock %}
</head>
<body>
<a id="github-ribbon" href="http://github.com/destrangis/rsted">Fork me on GitHub</a>
{% block body_head %}
{% endblock %}
<header id="header">
<h1>{% block site_title %}Online reStructuredText editor{% endblock %}</h1>
<menu id="navigation">
{%- block main_nav %}
<ul class="menu" id="menu">
<li class="{{ is_active('index') }}"><a href="{{ url_for('index') }}">Editor</a>
</li>
<li class="{{ is_active('about') }}"><a href="{{ url_for('about') }}">About</a></li>
</ul>
{% endblock -%}
</menu>
</header>
<script type="text/javascript">
var script_root = {{ request.script_root|tojson|safe }};
$('#navigation').find("li.active a").click(function(evt) {
evt.preventDefault();
});
</script>
<div id="content">
{%- block content %}
{% endblock -%}
</div>
<footer id="footer">
<span class="left"><a target="_blank" href="http://docutils.sourceforge.net/docs/user/rst/quickref.html">Quick reStructuredText reference</a></span>
<span class="right">Copyright © rst.ninjs.org, 2011</span>
</footer>
</body>
</html>