Auto-indent the base template
This commit is contained in:
parent
9581ca16ab
commit
7ea58907e6
1 changed files with 59 additions and 59 deletions
|
@ -1,63 +1,63 @@
|
|||
{% load static %}{% load i18n %}{% load navbar %}{% load get_page %}{% get_current_language as LANGUAGE_CODE %}<!doctype html>
|
||||
<html lang="{{ LANGUAGE_CODE }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{% if debug %}
|
||||
<link rel="stylesheet" href="{% static 'bulma/css/font-awesome.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'bulma/css/style.css' %}">
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{% static 'bulma/css/font-awesome.min.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'bulma/css/style.min.css' %}">
|
||||
{% endif %}
|
||||
<link rel="shortcut icon" href="{% static "khaganat/images/favicon.ico" %}">
|
||||
<link rel="stylesheet" href="{% static "khaganat/css/khaganat.css" %}">
|
||||
<script defer src="{% static "navbar/navbar.js" %}"></script>
|
||||
{% block headers %}{% endblock %}
|
||||
<title>Khaganat - {% block title %}{% endblock %}</title>
|
||||
</head>
|
||||
<body id="page_body">
|
||||
{% navbar %}
|
||||
<section class="section">
|
||||
{% if messages %}
|
||||
<div class="container" id="messagesContainer">
|
||||
{% 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 %}">
|
||||
<div class="message-body">
|
||||
{% if 'safe' in message.tags %}
|
||||
{{ message|safe }}
|
||||
{% else %}
|
||||
{{ message }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="container">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</section>
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<ul>
|
||||
{% get_page 'licences' as licences_page %}
|
||||
{% if licences_page %}
|
||||
<a href="{% url 'page' 'licences' %}">{{ licences_page.title }}</a>
|
||||
{% endif %}
|
||||
--
|
||||
{% get_page 'legal' as legal_page %}
|
||||
{% if legal_page %}
|
||||
<a href="{% url 'page' 'legal' %}">{{ legal_page.title }}</a>
|
||||
{% endif %}
|
||||
--
|
||||
{% get_page 'contact' as contact_page %}
|
||||
{% if contact_page %}
|
||||
<a href="{% url 'page' 'contact' %}">{{ contact_page.title }}</a>
|
||||
{% endif %}
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{% if debug %}
|
||||
<link rel="stylesheet" href="{% static 'bulma/css/font-awesome.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'bulma/css/style.css' %}">
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{% static 'bulma/css/font-awesome.min.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'bulma/css/style.min.css' %}">
|
||||
{% endif %}
|
||||
<link rel="shortcut icon" href="{% static "khaganat/images/favicon.ico" %}">
|
||||
<link rel="stylesheet" href="{% static "khaganat/css/khaganat.css" %}">
|
||||
<script defer src="{% static "navbar/navbar.js" %}"></script>
|
||||
{% block headers %}{% endblock %}
|
||||
<title>Khaganat - {% block title %}{% endblock %}</title>
|
||||
</head>
|
||||
<body id="page_body">
|
||||
{% navbar %}
|
||||
<section class="section">
|
||||
{% if messages %}
|
||||
<div class="container" id="messagesContainer">
|
||||
{% 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 %}">
|
||||
<div class="message-body">
|
||||
{% if 'safe' in message.tags %}
|
||||
{{ message|safe }}
|
||||
{% else %}
|
||||
{{ message }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="container">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</section>
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<ul>
|
||||
{% get_page 'licences' as licences_page %}
|
||||
{% if licences_page %}
|
||||
<a href="{% url 'page' 'licences' %}">{{ licences_page.title }}</a>
|
||||
{% endif %}
|
||||
--
|
||||
{% get_page 'legal' as legal_page %}
|
||||
{% if legal_page %}
|
||||
<a href="{% url 'page' 'legal' %}">{{ legal_page.title }}</a>
|
||||
{% endif %}
|
||||
--
|
||||
{% get_page 'contact' as contact_page %}
|
||||
{% if contact_page %}
|
||||
<a href="{% url 'page' 'contact' %}">{{ contact_page.title }}</a>
|
||||
{% endif %}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue