symposion_app/symposion_project/templates/site_base.html

121 lines
4.3 KiB
HTML
Raw Normal View History

2012-07-13 03:36:52 +00:00
{% extends "symposion_sidebar_base.html" %}
2012-02-05 18:53:49 +00:00
{% load metron_tags %}
{% load i18n %}
2012-05-22 06:11:40 +00:00
{% load sitetree %}
2012-07-10 22:18:48 +00:00
{% load markitup_tags %}
{% load static %}
2012-02-05 18:53:49 +00:00
2012-07-13 18:37:19 +00:00
{% block viewport %}{% endblock %}
2012-07-13 02:50:48 +00:00
{% block style_base %}
<link href="{% static "symposion/css/symposion.css" %}" rel="stylesheet">
{% block extra_style %}{% endblock %}
{% endblock %}
2012-02-05 18:53:49 +00:00
{% block extra_head_base %}
2012-07-10 22:18:48 +00:00
<link href="{{ STATIC_URL }}img/favicon.ico" rel="shortcut icon" />
<script src="{% block jquery_src %}{% static "pinax/js/jquery.js" %}{% endblock %}"></script>
{% markitup_media "no-jquery" %}
2012-02-05 18:53:49 +00:00
{% block extra_head %}{% endblock %}
{% endblock %}
2012-07-13 03:38:19 +00:00
{% block topbar_base %}
<div class="container">
2012-07-19 07:09:33 +00:00
<header id="masthead">
2012-07-13 03:38:19 +00:00
<div class="pull-right">
<ul class="nav nav-pills">
{% if not request.user.is_authenticated %}
<li>
<a href="{% url account_login %}">Log in</a>
</li>
<li>
<a href="{% url account_signup %}">Sign up</a>
</li>
{% else %}
<li>
<a href="{% url dashboard %}">Dashboard</a>
</li>
<li>
<a href="{% url account_settings %}">Settings</a>
</li>
{% if request.user.is_staff %}
<li>
<a href="{% url admin:index %}">Admin</a>
</li>
{% endif %}
<li>
<a id="logout_link" href="{% url account_logout %}" data-form-submit="#account_logout_form">Log out</a>
</li>
<form id="account_logout_form" class="hide" action="{% url account_logout %}" method="post">{% csrf_token %}</form>
{% endif %}
</ul>
2012-07-13 03:38:19 +00:00
</div>
2012-07-13 07:07:35 +00:00
<h1><a href="{% url home %}">{{ SITE_NAME }}</a></h1>
2012-07-13 07:16:44 +00:00
<h2><a href="{% url home %}"><span style="font-weight: 200;">Some amazing location, February 31st</span></a></h2>
2012-07-13 03:38:19 +00:00
</header>
<div class="navbar">
<div class="navbar-inner">
{% block topbar %}
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="nav-collapse">
{% block nav %}
2012-08-14 08:20:56 +00:00
{% sitetree_menu from "main" include "trunk" template "sitetree/menu_bootstrap.html" %}
2012-07-13 03:38:19 +00:00
{% endblock %}
</div>
{% endblock %}
</div>
</div>
</div>
2012-07-10 22:18:48 +00:00
{% endblock %}
{% block body_base %}
<div class="container">
{% include "_messages.html" %}
2012-07-13 04:34:16 +00:00
{# {% block breadcrumbs %} #}
{# {% sitetree_breadcrumbs from "main" %} #}
{# {% endblock %} #}
2012-07-10 22:18:48 +00:00
{% block body_outer %}
<div class="row">
<div class="span9">
{% block body %}
{% endblock %}
</div>
<div class="span3">
{% block sidebar %}
{% include "_default_sidebar.html" %}
{% endblock %}
</div>
2012-07-13 03:37:43 +00:00
</div>
{% endblock %}
2012-07-10 22:18:48 +00:00
</div>
{% endblock %}
2012-02-05 18:53:49 +00:00
{% block footer %}
{% include "_footer.html" %}
{% endblock %}
2012-07-10 22:18:48 +00:00
{% block script_base %}
2012-02-05 18:53:49 +00:00
{% analytics %}
2012-07-10 22:18:48 +00:00
<script src="{% static "bootstrap/js/bootstrap.js" %}"></script>
<script src="{% static "pinax/js/theme.js" %}"></script>
<script type="text/javascript">
$(function() {
$("#logout_link").on("click", function(e) {
var form = $($(this).data("form-submit"));
form.submit();
return false;
});
2012-07-19 07:10:46 +00:00
$(".required-field").prepend("<span style='color:red;'>* </div>");
});
</script>
2012-07-10 22:18:48 +00:00
{% block extra_script %}{% endblock %}
{% endblock %}