<!DOCTYPE html>
{% 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.resource_manager.register_widgets(c) %}
<html xmlns="http://www.w3.org/1999/xhtml">
<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_static(''))}}
<script type="text/javascript">
/*jslint onevar: false, nomen: false, evil: true, css: true, plusplus: false, white: false, forin: true, on: true */
/*global 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 %}
<link rel="stylesheet" type="text/css" media="screen" href="{{g.theme_static(g.theme['base_css'])}}" />
{% for t in g.theme['theme_css'] %}
<link rel="stylesheet" type="text/css" media="screen" href="{{g.theme_static(t)}}" />
{% endfor %}
{% if c.project and c.project.neighborhood.css %}
<style type="text/css">
{{c.project.neighborhood.css}}
</style>
{% elif neighborhood and neighborhood.css %}
<style type="text/css">
{{neighborhood.css}}
</style>
{% endif %}
{% block extra_css %}{% endblock %}
<style>.{{ g.antispam.honey_class }} { display:none }</style>
{% block head %}
{% endblock %}
<!--[if lt IE 9]>
<link rel="stylesheet" href="/nf/css/forge/ie.css" type="text/css" charset="utf-8" />
<![endif]-->
<!--[if IE]>
<style type="text/css">
.sfdl p.hide, .sfdls p.hide {display: none !important;}
</style>
<![endif]-->
{% 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(c.user.username, c.user._id, c.user.display_name, g.login_url, '/auth/logout')}}
{% set flash = tg.flash_obj.render('flash', use_js=False) %}
{% if flash %}
<div style="display:none">
{{flash | safe}}
</div>
{% endif %}
<section id="page-body" class="{{g.document_class(neighborhood)}}">
<div class="grid-24">
{% 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 title">{% 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 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())}}
<div id="messages">
{% for n in h.pop_user_notifications() %}
<section class="message 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(g.theme_static(''))}}
</body>
</html>