authentic2/templates: add a block around the navigation menu and hide it on the login page

This commit is contained in:
Benjamin Dauvergne 2015-06-02 11:14:30 +02:00
parent 8d8e512e68
commit a02a581749
11 changed files with 5 additions and 1 deletions

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 429 B

After

Width:  |  Height:  |  Size: 429 B

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -33,6 +33,7 @@
</ul>
{% endif %}
{% endblock %}
{% block nav %}
{% if user.is_authenticated %}
<div id="nav">
<p>Bonjour {{ user.get_full_name }}</p>
@ -59,6 +60,7 @@
</ul>
</div>
{% endif %}
{% endblock %}
<div id="main-content">
{% block content %}{% endblock %}
</div> <!-- main-content -->

View File

@ -15,8 +15,10 @@
<script type="text/javascript" src="{{ STATIC_URL }}jquery/js/jquery.simplemodal.js"></script>
{% endblock %}
{% block content %}
{% block nav %}
{% endblock %}
{% block content %}
<div id="info-box">
<h1>Connexion</h1>
</div>