|
a |
|
b/opensourceprojects/templates/jinja_master/master.html |
|
|
1 |
<!DOCTYPE html>
|
|
|
2 |
<!-- Server: {{g.server_name}} -->
|
|
|
3 |
{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
|
|
|
4 |
{% if g.theme.jinja_macros %}
|
|
|
5 |
{% import g.theme.jinja_macros as theme_macros with context %}
|
|
|
6 |
{% endif %}
|
|
|
7 |
{% do g.register_forge_js('js/jquery-base.js') %}
|
|
|
8 |
{% do g.register_forge_js('js/jquery.notify.js') %}
|
|
|
9 |
{% do g.register_forge_js('js/sylvester.js') %}
|
|
|
10 |
{% do g.register_forge_js('js/pb.transformie.min.js') %}
|
|
|
11 |
{% do g.register_forge_js('js/allura-base.js') %}
|
|
|
12 |
{% do g.register_forge_css('css/forge/hilite.css') %}
|
|
|
13 |
{% do g.theme.require() %}
|
|
|
14 |
{% do g.resource_manager.register_widgets(c) %}
|
|
|
15 |
{# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ #}
|
|
|
16 |
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
|
|
|
17 |
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
|
|
|
18 |
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
|
|
|
19 |
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
|
|
|
20 |
<!--[if (gt IE 9)|!(IE)]>--> <html lang="en" class="no-js"> <!--<![endif]-->
|
|
|
21 |
<head>
|
|
|
22 |
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
|
|
|
23 |
<title>{% block title %}Your title goes here{% endblock %}</title>
|
|
|
24 |
{{theme_macros.extra_header(g.theme_href(''))}}
|
|
|
25 |
<script type="text/javascript">
|
|
|
26 |
/*jslint onevar: false, nomen: false, evil: true, css: true, plusplus: false, white: false, forin: true, on: true, immed: false */
|
|
|
27 |
/*global confirm, alert, unescape, window, jQuery, $, net, COMSCORE */
|
|
|
28 |
</script>
|
|
|
29 |
{% for blob in g.resource_manager.emit('head_css') %}
|
|
|
30 |
{{ blob }}
|
|
|
31 |
{% endfor %}
|
|
|
32 |
{% if c.project %}
|
|
|
33 |
{% for blob in g.resource_manager.emit('head_js') %}
|
|
|
34 |
{{ blob }}
|
|
|
35 |
{% endfor %}
|
|
|
36 |
{% endif %}
|
|
|
37 |
|
|
|
38 |
{% if c.project and c.project.neighborhood.css %}
|
|
|
39 |
<style type="text/css">
|
|
|
40 |
{{c.project.neighborhood.get_custom_css()|safe}}
|
|
|
41 |
</style>
|
|
|
42 |
{% elif neighborhood and neighborhood.css %}
|
|
|
43 |
<style type="text/css">
|
|
|
44 |
{{neighborhood.get_custom_css()}}
|
|
|
45 |
</style>
|
|
|
46 |
{% endif %}
|
|
|
47 |
{% block extra_css %}{% endblock %}
|
|
|
48 |
<style>.{{ g.antispam.honey_class }} { display:none }</style>
|
|
|
49 |
|
|
|
50 |
{% block head %}
|
|
|
51 |
{% endblock %}
|
|
|
52 |
{% if g.production_mode %}{{g.analytics.display()}}{% endif %}
|
|
|
53 |
</head>
|
|
|
54 |
|
|
|
55 |
<body{% block body_attrs %}{% endblock %} id="forge">
|
|
|
56 |
{% for blob in g.resource_manager.emit('body_top_js') %}
|
|
|
57 |
{{ blob }}
|
|
|
58 |
{% endfor %}
|
|
|
59 |
{{theme_macros.header(g.login_url, '/auth/logout')}}
|
|
|
60 |
{% set flash = tg.flash_obj.render('flash', use_js=False) %}
|
|
|
61 |
<section id="page-body" class="{{g.document_class(neighborhood)}}">
|
|
|
62 |
|
|
|
63 |
<div id="content_base">
|
|
|
64 |
<div class="magic_bar_osp">
|
|
|
65 |
<div id="top_nav" class="">
|
|
|
66 |
{% block top_nav %}
|
|
|
67 |
{% include g.theme.top_nav %}
|
|
|
68 |
{% endblock %}
|
|
|
69 |
</div>
|
|
|
70 |
{% if not hide_left_bar %}
|
|
|
71 |
{% block sidebar_menu %}
|
|
|
72 |
{% include g.theme.sidebar_menu %}
|
|
|
73 |
{% endblock %}
|
|
|
74 |
{% set outer_width = 20 %}
|
|
|
75 |
{% else %}
|
|
|
76 |
{% set outer_width = 24 %}
|
|
|
77 |
{% endif %}
|
|
|
78 |
{% set outer_width = 20 %}
|
|
|
79 |
{% if show_right_bar %}
|
|
|
80 |
{% set inner_width = outer_width - 8 %}
|
|
|
81 |
{% else %}
|
|
|
82 |
{% set inner_width = outer_width %}
|
|
|
83 |
{% endif %}
|
|
|
84 |
</div>
|
|
|
85 |
<div class="grid-{{outer_width}} pad">
|
|
|
86 |
<div class="grid-24" id="nav_menu_holder">
|
|
|
87 |
{% block nav_menu %}
|
|
|
88 |
{% include g.theme.nav_menu %}
|
|
|
89 |
{% endblock %}
|
|
|
90 |
</div>
|
|
|
91 |
|
|
|
92 |
<h2 class="dark{% block header_classes %} title{% endblock %}">{% block header %}{% endblock %}
|
|
|
93 |
<!-- actions -->
|
|
|
94 |
<small>
|
|
|
95 |
{% block actions %}{% endblock %}
|
|
|
96 |
</small>
|
|
|
97 |
<!-- /actions -->
|
|
|
98 |
</h2>
|
|
|
99 |
{% block edit_box %}{% endblock %}
|
|
|
100 |
<div class="padding_content {% if show_right_bar %} {% block inner_grid %}grid-{{inner_width}}{% endblock %}{% endif %}">
|
|
|
101 |
{% block before_content %}{% endblock %}
|
|
|
102 |
{% block content %}{% endblock %}
|
|
|
103 |
</div>
|
|
|
104 |
{% if show_right_bar %}
|
|
|
105 |
<div id="sidebar-right" class="grid-6 fright">
|
|
|
106 |
{% block right_content %}{% endblock %}
|
|
|
107 |
</div>
|
|
|
108 |
{% endif %}
|
|
|
109 |
{% block after_content %}{% endblock %}
|
|
|
110 |
</div>
|
|
|
111 |
</div>
|
|
|
112 |
</section>
|
|
|
113 |
{{theme_macros.footer(g.year(), g.theme_href(''))}}
|
|
|
114 |
<div id="messages">
|
|
|
115 |
{% for n in h.pop_user_notifications() %}
|
|
|
116 |
<section class="message {{ n.subject or 'info' }}">
|
|
|
117 |
<header>Notification:</header>
|
|
|
118 |
<div class="content">{{ n.text }}</div>
|
|
|
119 |
</section>
|
|
|
120 |
{% endfor %}
|
|
|
121 |
</div>
|
|
|
122 |
{% for blob in g.resource_manager.emit('body_js') %}
|
|
|
123 |
{{ blob }}
|
|
|
124 |
{% endfor %}
|
|
|
125 |
{% for blob in g.resource_manager.emit('body_js_tail') %}
|
|
|
126 |
{{ blob }}
|
|
|
127 |
{% endfor %}
|
|
|
128 |
{% block extra_js %}{% endblock %}
|
|
|
129 |
{% if neighborhood %}
|
|
|
130 |
{{ neighborhood.site_specific_html | safe }}
|
|
|
131 |
{% elif c.project.neighborhood %}
|
|
|
132 |
{{ c.project.neighborhood.site_specific_html | safe }}
|
|
|
133 |
{% endif %}
|
|
|
134 |
{{theme_macros.custom_js()}}
|
|
|
135 |
{% if flash %}
|
|
|
136 |
<script type="text/javascript">{{flash | safe}}</script>
|
|
|
137 |
{% endif %}
|
|
|
138 |
</body>
|
|
|
139 |
</html>
|