Auto-indent the base template

This commit is contained in:
Rodolphe Breard 2019-07-22 23:15:22 +02:00
parent 9581ca16ab
commit 7ea58907e6

View file

@ -1,63 +1,63 @@
{% load static %}{% load i18n %}{% load navbar %}{% load get_page %}{% get_current_language as LANGUAGE_CODE %}<!doctype html> {% load static %}{% load i18n %}{% load navbar %}{% load get_page %}{% get_current_language as LANGUAGE_CODE %}<!doctype html>
<html lang="{{ LANGUAGE_CODE }}"> <html lang="{{ LANGUAGE_CODE }}">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
{% if debug %} {% if debug %}
<link rel="stylesheet" href="{% static 'bulma/css/font-awesome.css' %}"> <link rel="stylesheet" href="{% static 'bulma/css/font-awesome.css' %}">
<link rel="stylesheet" href="{% static 'bulma/css/style.css' %}"> <link rel="stylesheet" href="{% static 'bulma/css/style.css' %}">
{% else %} {% else %}
<link rel="stylesheet" href="{% static 'bulma/css/font-awesome.min.css' %}"> <link rel="stylesheet" href="{% static 'bulma/css/font-awesome.min.css' %}">
<link rel="stylesheet" href="{% static 'bulma/css/style.min.css' %}"> <link rel="stylesheet" href="{% static 'bulma/css/style.min.css' %}">
{% endif %} {% endif %}
<link rel="shortcut icon" href="{% static "khaganat/images/favicon.ico" %}"> <link rel="shortcut icon" href="{% static "khaganat/images/favicon.ico" %}">
<link rel="stylesheet" href="{% static "khaganat/css/khaganat.css" %}"> <link rel="stylesheet" href="{% static "khaganat/css/khaganat.css" %}">
<script defer src="{% static "navbar/navbar.js" %}"></script> <script defer src="{% static "navbar/navbar.js" %}"></script>
{% block headers %}{% endblock %} {% block headers %}{% endblock %}
<title>Khaganat - {% block title %}{% endblock %}</title> <title>Khaganat - {% block title %}{% endblock %}</title>
</head> </head>
<body id="page_body"> <body id="page_body">
{% navbar %} {% navbar %}
<section class="section"> <section class="section">
{% if messages %} {% if messages %}
<div class="container" id="messagesContainer"> <div class="container" id="messagesContainer">
{% for message in messages %} {% for message in messages %}
<article class="message{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %} is-danger{% elif message.level == DEFAULT_MESSAGE_LEVELS.WARNING %} is-warning{% elif message.level == DEFAULT_MESSAGE_LEVELS.SUCCESS %} is-success{% elif message.level == DEFAULT_MESSAGE_LEVELS.INFO %} is-info{% endif %}"> <article class="message{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %} is-danger{% elif message.level == DEFAULT_MESSAGE_LEVELS.WARNING %} is-warning{% elif message.level == DEFAULT_MESSAGE_LEVELS.SUCCESS %} is-success{% elif message.level == DEFAULT_MESSAGE_LEVELS.INFO %} is-info{% endif %}">
<div class="message-body"> <div class="message-body">
{% if 'safe' in message.tags %} {% if 'safe' in message.tags %}
{{ message|safe }} {{ message|safe }}
{% else %} {% else %}
{{ message }} {{ message }}
{% endif %} {% endif %}
</div> </div>
</article> </article>
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
<div class="container"> <div class="container">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
</section> </section>
<footer class="footer"> <footer class="footer">
<div class="container"> <div class="container">
<ul> <ul>
{% get_page 'licences' as licences_page %} {% get_page 'licences' as licences_page %}
{% if licences_page %} {% if licences_page %}
<a href="{% url 'page' 'licences' %}">{{ licences_page.title }}</a> <a href="{% url 'page' 'licences' %}">{{ licences_page.title }}</a>
{% endif %} {% endif %}
-- --
{% get_page 'legal' as legal_page %} {% get_page 'legal' as legal_page %}
{% if legal_page %} {% if legal_page %}
<a href="{% url 'page' 'legal' %}">{{ legal_page.title }}</a> <a href="{% url 'page' 'legal' %}">{{ legal_page.title }}</a>
{% endif %} {% endif %}
-- --
{% get_page 'contact' as contact_page %} {% get_page 'contact' as contact_page %}
{% if contact_page %} {% if contact_page %}
<a href="{% url 'page' 'contact' %}">{{ contact_page.title }}</a> <a href="{% url 'page' 'contact' %}">{{ contact_page.title }}</a>
{% endif %} {% endif %}
</ul> </ul>
</div> </div>
</footer> </footer>
</body> </body>
</html> </html>