]> git.parisson.com Git - mezzo.git/commitdiff
Indent base.html
authorPhilippe Barbosa <contact@philippebarbosa.com>
Wed, 2 Mar 2016 11:24:33 +0000 (12:24 +0100)
committerPhilippe Barbosa <contact@philippebarbosa.com>
Wed, 2 Mar 2016 11:24:33 +0000 (12:24 +0100)
app/templates/base.html

index 125a0443403204f1bc1e693770a0d755846e645f..de841034f0d4b6accc859180191ef3553dfd50ac 100644 (file)
 <!doctype html>
-<html lang="{{ LANGUAGE_CODE }}"{% if LANGUAGE_BIDI %} dir="rtl"{% endif %}>
+<html lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %} dir="rtl" {% endif %}>
 {% load pages_tags mezzanine_tags i18n staticfiles keyword_tags %}
 
 <head>
-<meta http-equiv="Content-type" content="text/html; charset=utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<meta name="keywords" content="{% block meta_keywords %}{% endblock %}">
-<meta name="description" content="{% block meta_description %}{% endblock %}">
-<title>{% block meta_title %}{% endblock %}{% if settings.SITE_TITLE %} | {{ settings.SITE_TITLE }}{% endif %}</title>
-<link rel="shortcut icon" href="{% static "img/favicon.ico" %}">
-
-{% ifinstalled mezzanine.blog %}
-<link rel="alternate" type="application/rss+xml" title="RSS" href="{% url "blog_post_feed" "rss" %}">
-<link rel="alternate" type="application/atom+xml" title="Atom" href="{% url "blog_post_feed" "atom" %}">
-{% endifinstalled %}
-
-{% compress css %}
-<link rel="stylesheet" href="{% static "css/bootstrap.css" %}">
-<link rel="stylesheet" href="{% static "css/mezzanine.css" %}">
-<link rel="stylesheet" href="{% static "css/bootstrap-theme.css" %}">
-{% if LANGUAGE_BIDI %}
-<link rel="stylesheet" href="{% static "css/bootstrap-rtl.css" %}">
-{% endif %}
-{% block extra_css %}
-<link rel="stylesheet" href="{% static "festival/css/festival.css" %}">
-{% endblock %}
-{% endcompress %}
-
-
-{% compress js %}
-<script src="{% static "mezzanine/js/"|add:settings.JQUERY_FILENAME %}"></script>
-<script src="{% static "js/bootstrap.js" %}"></script>
-<script src="{% static "js/bootstrap-extras.js" %}"></script>
-{% block extra_js %}{% endblock %}
-{% endcompress %}
-
-
-<!--[if lt IE 9]>
+    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="keywords" content="{% block meta_keywords %}{% endblock %}">
+    <meta name="description" content="{% block meta_description %}{% endblock %}">
+    <title>{% block meta_title %}{% endblock %}{% if settings.SITE_TITLE %} | {{ settings.SITE_TITLE }}{% endif %}</title>
+    <link rel="shortcut icon" href="{% static " img/favicon.ico " %}"> {% ifinstalled mezzanine.blog %}
+    <link rel="alternate" type="application/rss+xml" title="RSS" href="{% url " blog_post_feed " "rss " %}">
+    <link rel="alternate" type="application/atom+xml" title="Atom" href="{% url " blog_post_feed " "atom " %}"> {% endifinstalled %} {% compress css %}
+    <link rel="stylesheet" href="{% static " css/index.css " %}"> {% if LANGUAGE_BIDI %} {#
+    <link rel="stylesheet" href="{% static " css/bootstrap-rtl.css " %}"> #} {% endif %} {% block extra_css %} {#
+    <link rel="stylesheet" href="{% static " festival/css/festival.css " %}"> #} {% endblock %} {% endcompress %} {% compress js %}
+    <script src="{% static " mezzanine/js/ "|add:settings.JQUERY_FILENAME %}"></script>
+    {#
+    <script src="{% static " js/bootstrap.js " %}"></script>
+    <script src="{% static " js/bootstrap-extras.js " %}"></script> #} {% block extra_js %}{% endblock %} {% endcompress %}
+    <!--[if lt IE 9]>
 <script src="{% static "js/html5shiv.js" %}"></script>
 <script src="{% static "js/respond.min.js" %}"></script>
 <![endif]-->
-
-{% block extra_head %}{% endblock %}
+    {% block extra_head %}{% endblock %}
 </head>
 
 <body id="{% block body_id %}body{% endblock %}">
-
-<div class="navbar navbar-default navbar-fixed-top" role="navigation">
-<div class="container">
-<div class="navbar-header">
-    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
-        <span class="sr-only">{% trans "Toggle Navigation" %}</span>
-        <span class="icon-bar"></span>
-        <span class="icon-bar"></span>
-        <span class="icon-bar"></span>
-    </button>
-    {% if settings.SITE_TITLE %}<a class="navbar-brand" href="/">{{ settings.SITE_TITLE }}</a>{% endif %}
-    {% if settings.SITE_TAGLINE %}<p class="navbar-text visible-lg">{{ settings.SITE_TAGLINE }}</p>{% endif %}
-</div>
-<div class="navbar-collapse collapse">
-    {% search_form "all" %}
-    {% page_menu "pages/menus/dropdown.html" %}
-</div>
-</div>
-</div>
-
-<div class="container main">
-
-{% nevercache %}
-{% if messages %}
-<div class="messages">
-{% for message in messages %}
-<div class="alert alert-dismissable alert-{{ message.tags }}" data-alert="alert">
-    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
-    {{ message }}
-</div>
-{% endfor %}
-</div>
-{% endif %}
-{% endnevercache %}
-
-<h1>{% block title %}{% endblock %}</h1>
-
-{% comment - Remove breadcrumbs %}
-<ul class="breadcrumb">
-{% spaceless %}
-{% block breadcrumb_menu %}{% page_menu "pages/menus/breadcrumb.html" %}{% endblock %}
-{% endspaceless %}
-</ul>
-{% endcomment %}
-
-</div>
-
-<div class="container">
-<div class="row">
-
-<div class="col-md-9 left">
-    {% block main %}{% endblock %}
-</div>
-
-<div class="col-md-3 right">
-    {% nevercache %}
-    {% include "includes/language_selector.html" %}
-    {% include "includes/user_panel.html" %}
-    {% endnevercache %}
-    <div class="panel panel-default">
-    <div class="panel-body">
-    {% block right_panel %}
-    {% ifinstalled mezzanine.twitter %}
-    {% include "twitter/tweets.html" %}
-    {% endifinstalled %}
-    {% endblock %}
+    <div class="navbar navbar-default navbar-fixed-top" role="navigation">
+        <div class="container">
+            <div class="navbar-header">
+                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+                    <span class="sr-only">{% trans "Toggle Navigation" %}</span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </button>
+                {% if settings.SITE_TITLE %}<a class="navbar-brand" href="/">{{ settings.SITE_TITLE }}</a>{% endif %} {% if settings.SITE_TAGLINE %}
+                <p class="navbar-text visible-lg">{{ settings.SITE_TAGLINE }}</p>{% endif %}
+            </div>
+            <div class="navbar-collapse collapse">
+                {% search_form "all" %} {% page_menu "pages/menus/dropdown.html" %}
+            </div>
+        </div>
     </div>
+    <div class="container main">
+        {% nevercache %} {% if messages %}
+        <div class="messages">
+            {% for message in messages %}
+            <div class="alert alert-dismissable alert-{{ message.tags }}" data-alert="alert">
+                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
+                {{ message }}
+            </div>
+            {% endfor %}
+        </div>
+        {% endif %} {% endnevercache %}
+        <h1>{% block title %}{% endblock %}</h1> {% comment - Remove breadcrumbs %}
+        <ul class="breadcrumb">
+            {% spaceless %} {% block breadcrumb_menu %}{% page_menu "pages/menus/breadcrumb.html" %}{% endblock %} {% endspaceless %}
+        </ul>
+        {% endcomment %}
     </div>
-</div>
-
-</div>
-</div>
-
-<footer>
-<div class="container">
-{% page_menu "pages/menus/footer.html" %}
-
-<div class="row">
-<p class="site-info text-center">
-    {% trans "Powered by" %}
-    <a href="http://mezzanine.jupo.org">Mezzanine</a>{% ifinstalled cartridge.shop %},
-    <a href="http://cartridge.jupo.org">Cartridge</a>{% endifinstalled %}
-    {% trans "and" %}
-    <a href="http://www.djangoproject.com">Django</a>
-    <span class="separator">|</span>
-    {% trans "Theme by" %} <a target="_blank" href="http://getbootstrap.com">Bootstrap</a>
-    {% ifinstalled mezzanine.mobile %}
-    <span class="separator">|</span>
-    <a href="{% url "set_device" "mobile" %}?next={{ request.path }}">{% trans "View Mobile Site" %}</a>
-    {% endifinstalled %}
-</p>
-</div>
-</div>
-</footer>
-
-{% include "includes/footer_scripts.html" %}
-
+    <div class="container">
+        <div class="row">
+            <div class="col-md-9 left">
+                {% block main %}{% endblock %}
+            </div>
+            <div class="col-md-3 right">
+                {% nevercache %} {% include "includes/language_selector.html" %} {% include "includes/user_panel.html" %} {% endnevercache %}
+                <div class="panel panel-default">
+                    <div class="panel-body">
+                        {% block right_panel %} {% ifinstalled mezzanine.twitter %} {% include "twitter/tweets.html" %} {% endifinstalled %} {% endblock %}
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+    <footer>
+        <div class="container">
+            {% page_menu "pages/menus/footer.html" %}
+            <div class="row">
+                <p class="site-info text-center">
+                    {% trans "Powered by" %}
+                    <a href="http://mezzanine.jupo.org">Mezzanine</a>{% ifinstalled cartridge.shop %},
+                    <a href="http://cartridge.jupo.org">Cartridge</a>{% endifinstalled %} {% trans "and" %}
+                    <a href="http://www.djangoproject.com">Django</a>
+                    <span class="separator">|</span> {% trans "Theme by" %} <a target="_blank" href="http://getbootstrap.com">Bootstrap</a> {% ifinstalled mezzanine.mobile %}
+                    <span class="separator">|</span>
+                    <a href="{% url " set_device " "mobile " %}?next={{ request.path }}">{% trans "View Mobile Site" %}</a> {% endifinstalled %}
+                </p>
+            </div>
+        </div>
+    </footer>
+    {% include "includes/footer_scripts.html" %}
 </body>
+
 </html>