Parent: [ddf08c] (diff)

Child: [833aa4] (diff)

Download this file

master.html    153 lines (147 with data), 6.0 kB

  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
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{#-
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-#}
<!DOCTYPE html>
<!-- Server: {{g.server_name}} -->
{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
{% if g.theme.jinja_macros %}
{% import g.theme.jinja_macros as theme_macros with context %}
{% endif %}
{% do g.register_forge_js('js/jquery-base.js') %}
{% do g.register_forge_js('js/jquery.notify.js') %}
{% do g.register_forge_js('js/sylvester.js') %}
{% do g.register_forge_js('js/pb.transformie.min.js') %}
{% do g.register_forge_js('js/allura-base.js') %}
{% do g.register_forge_css('css/forge/hilite.css') %}
{% do g.theme.require() %}
{% do g.resource_manager.register_widgets(c) %}
{# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ #}
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]>--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
<title>{% block title %}Your title goes here{% endblock %}</title>
{{theme_macros.extra_header(g.theme_href(''))}}
<script type="text/javascript">
/*jslint onevar: false, nomen: false, evil: true, css: true, plusplus: false, white: false, forin: true, on: true, immed: false */
/*global confirm, alert, unescape, window, jQuery, $, net, COMSCORE */
</script>
{% for blob in g.resource_manager.emit('head_css') %}
{{ blob }}
{% endfor %}
{% if c.project %}
{% for blob in g.resource_manager.emit('head_js') %}
{{ blob }}
{% endfor %}
{% endif %}
{% if c.project and c.project.neighborhood.css %}
<style type="text/css">
{{c.project.neighborhood.get_custom_css()|safe}}
</style>
{% elif neighborhood and neighborhood.css %}
<style type="text/css">
{{neighborhood.get_custom_css()}}
</style>
{% endif %}
{% block extra_css %}{% endblock %}
<style>.{{ g.antispam.honey_class }} { display:none }</style>
{% block head %}
{% endblock %}
{% if g.production_mode %}{{g.analytics.display()}}{% endif %}
</head>
<body{% block body_attrs %}{% endblock %} id="forge">
{% for blob in g.resource_manager.emit('body_top_js') %}
{{ blob }}
{% endfor %}
{{theme_macros.header(g.login_url, '/auth/logout')}}
{% set flash = tg.flash_obj.render('flash', use_js=False) %}
<section id="page-body" class="{{g.document_class(neighborhood)}}">
<div class="grid-24" id="nav_menu_holder">
{% block nav_menu %}
{% include g.theme.nav_menu %}
{% endblock %}
</div>
<div id="top_nav" class="">
{% block top_nav %}
{% include g.theme.top_nav %}
{% endblock %}
</div>
<div id="content_base">
{% if not hide_left_bar %}
{% block sidebar_menu %}
{% include g.theme.sidebar_menu %}
{% endblock %}
{% set outer_width = 20 %}
{% else %}
{% set outer_width = 24 %}
{% endif %}
{% if show_right_bar %}
{% set inner_width = outer_width - 8 %}
{% else %}
{% set inner_width = outer_width %}
{% endif %}
<div class="grid-{{outer_width}} pad">
<h2 class="dark{% block header_classes %} title{% endblock %}">{% block header %}{% endblock %}
<!-- actions -->
<small>
{% block actions %}{% endblock %}
</small>
<!-- /actions -->
</h2>
{% block edit_box %}{% endblock %}
<div{% if show_right_bar %} class="{% block inner_grid %}grid-{{inner_width}}"{% endblock %}{% endif %}>
{% block before_content %}{% endblock %}
{% block content %}{% endblock %}
</div>
{% if show_right_bar %}
<div id="sidebar-right" class="grid-6 fright">
{% block right_content %}{% endblock %}
</div>
{% endif %}
{% block after_content %}{% endblock %}
</div>
</div>
</section>
{{theme_macros.footer(g.year(), g.theme_href(''))}}
<div id="messages">
{% for n in h.pop_user_notifications() %}
<section class="message {{ n.subject or 'info' }}">
<header>Notification:</header>
<div class="content">{{ n.text }}</div>
</section>
{% endfor %}
</div>
{% for blob in g.resource_manager.emit('body_js') %}
{{ blob }}
{% endfor %}
{% for blob in g.resource_manager.emit('body_js_tail') %}
{{ blob }}
{% endfor %}
{% block extra_js %}{% endblock %}
{% if neighborhood %}
{{ neighborhood.site_specific_html | safe }}
{% elif c.project.neighborhood %}
{{ c.project.neighborhood.site_specific_html | safe }}
{% endif %}
{{theme_macros.custom_js()}}
{% if flash %}
<script type="text/javascript">{{flash | safe}}</script>
{% endif %}
</body>
</html>