authentic2/templates: add a block around the navigation menu and hide it on the login page
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 429 B |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
@ -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 -->
|
||||
|
|
|
@ -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>
|
||||
|
|