Newer
Older
postorius / src / postorius / templates / postorius / base.html
@Florian Fuchs Florian Fuchs on 18 Nov 2012 3 KB * moved some sub navs to template tags
{% load url from future %}{% load i18n %}<!doctype html>
<!--[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 charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	
	<title></title>
	<meta name="description" content="">
	<meta name="author" content="">
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="shortcut icon" href="{{ STATIC_URL }}postorius/img/favicon.ico">
	<link rel="apple-touch-icon" href="{{ STATIC_URL }}postorius/img/apple-touch-icon.png">
	
	<link rel="stylesheet" href="{{ STATIC_URL }}postorius/css/normalize.css">
	<link rel="stylesheet" href="{{ STATIC_URL }}postorius/css/bootstrap.css">
	<link rel="stylesheet" href="{{ STATIC_URL }}postorius/css/style.css">
    
</head>
<body class="{% block body_class %}{% endblock %}">

    <header>
        <div class="mm_header">
            <div class="mm_canvas">
                <ul class="mm_metaNav">
                    <li><a class="mm_lists" href="{% url 'list_index' %}">Lists</a></li>
                    {% if user.is_authenticated %}
                        <li><a class="mm_todos" href="{% url 'user_todos' %}">Todos</a></li>
                    {% endif %}
                    {% if user.is_superuser %}
                        <li><a class="mm_users" href="{% url 'user_index' %}">Users</a></li>
                        <li><a class="mm_settings" href="{% url 'site_settings' %}">Settings</a></li>
                    {% endif %}
                	<li>{% if user.is_authenticated %}<a class="mm_logout" href="{% url 'user_logout' %}">Logout</a>{% else %}<a class="mm_user" href="{% url 'user_login' %}">Login</a>{% endif %}</li>
                </ul>
                <a href="{% url 'list_index' %}" class="mm_logo"><img src="{{ STATIC_URL }}/postorius/img/mailman_logo_trans.png" alt="{% trans 'Home' %}" /></a>
                {% if user.is_authenticated %}
                    <div class="mm_loginName">Logged in as: <a href="{% url 'user_profile' %}">{{ user.username }}</a></div>
                {% endif %}
            </div>
        </div>
    </header>

    <div class="mm_main mm_canvas">
        {% if messages %}
            <ul class="mm_messages">
            {% for message in messages %}
                <li class="alert {% if message.tags %} class="{{ message.tags }}"{% endif %}">{{ message }}</li>
            {% endfor %}
            </ul>
        {% endif %}
        {% block main %}{% endblock main %}
    </div>

    <footer>
        {% block footer %}
        <p class="mm_canvas">
            <a href="http://packages.python.org/postorius">Postorius Documentation</a> | 
            <a href="http://list.org">GNU Mailman</a>
        </p>
        {% endblock footer %}
    </footer>

    <script src="{{ STATIC_URL }}postorius/js/libs/jquery-1.7.1.min.js"></script>
    <script src="{{ STATIC_URL }}postorius/js/libs/bootstrap.js"></script>
    <script src="{{ STATIC_URL }}postorius/js/plugins.js"></script>
    <script src="{{ STATIC_URL }}postorius/js/script.js"></script>

    {% block additionaljs %}{% endblock %}
</body>