Source

djangoschool / djangoschool / templates / base.html

Full commit
{% load staticfiles %}
{% load i18n %}
{% load utils_tags %}

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf8" />
        <title>{% block title %}Без названия{% endblock %}</title>
        <link rel="stylesheet" href="{% static 'css/reset.css' %}" />
        <link rel="stylesheet" href="{% static 'css/text.css' %}" />
        <link rel="stylesheet" href="{% static 'css/960.css' %}" />
        <link rel="stylesheet" href="{% static 'css/uni-form.css' %}" />
        <link rel="stylesheet" href="{% static 'css/default.uni-form.css' %}" />
        <link rel="stylesheet" href="{% static 'css/application.css' %}" />
        <script type="text/javascript" src="{% static 'js/jquery.js' %}"></script>
        <script type="text/javascript" src="{% static 'js/uni-form.jquery.min.js' %}"></script>
        <script type="text/javascript" src="{% static 'js/application.js' %}"></script>
        {% block extra_head %}{% endblock %}
    </head>
    <body>
        <div class="header container_12">
            <div class="grid_6">
                <h1><a href="/">DjangoSchool</a></h1>
            </div>
            <div class="grid_6 umenu">
                {% if request.user.is_authenticated %}
                    <a href="{% url core_entry_add %}">{% trans "Add entry" %}</a>
                    <a href="{% url userena_signout %}">{% trans "Logout" %}</a>
                {% else %}
                <form action="{% url userena_signin %}" method="post">{% csrf_token %}
                        <input type="text" name="identification" placeholder="{% trans "Username" %}" />
                        <input type="password" name="password" placeholder="{% trans "Password" %}" />
                        <input type="submit" value="{% trans "Login" %}" />
                    </form>
                    <a href="{% url userena_password_reset %}">{% trans "Reset password" %}</a>
                    <a href="{% url userena_signup %}">{% trans "Registration" %}</a>

                {% endif %}
            </div>
            <div class="clear"></div>
            <div class="grid_12">
                <ul class="hnav">
                    <li class="{% active request '^/(\?page=\d+)?$' %}"><a href="{% url core_entry_list %}">Последнее</a></li>
                    <li class="{% active request '^/blogs' %}"><a href="{% url core_blog_list %}">Блоги</a></li>
                    <li><a href="#">Люди</a></li>
                </ul>
            </div>
        </div>

        <div class="container_12">
            <div class="container grid_12">
                {% if messages %}
                    {% for message in messages %}
                        <p class="alert-{{ message.tags }}">{{ message }}</p>
                    {% endfor %}
                {% endif %}
                
                <h2>{% block content_title %}{% endblock %}</h2>
                {% block content %}{% endblock %}
            </div>
            <div class="clear"></div>

            <div class="footer grid_12">
                &copy; 2012 djangoschool.ru
            </div>
        </div>
    </body>
</html>