Intranet app
This commit is contained in:
parent
cf3cf1748b
commit
faef1e2caa
12 changed files with 125 additions and 27 deletions
|
|
@ -9,9 +9,9 @@
|
|||
<div id="user-tools">
|
||||
{% if user.is_authenticated %}
|
||||
{% block welcome-msg %}Bienvenue <strong>{% firstof user.username %}</strong>.{% endblock %}
|
||||
<a href="{% url 'home' %}">Site public</a> <a href="{% url 'admin:index' %}">Admin</a>
|
||||
<a href="{% url 'logout' %}">Déconnexion</a>
|
||||
{% else %}
|
||||
<a href="{% url 'admin:index' %}">Admin</a>
|
||||
<a href="{% url 'login' %}">Login</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
@ -29,8 +29,8 @@
|
|||
<li><a href="{% url 'concept-detail' 1 %}">Concept pédagogique</a> </li>
|
||||
<li><a href="{% url 'concept-detail' 2 %}">Concept de formation</a> </li>
|
||||
<li><a href="{% url 'uploaddoc-list' %}">Téléchargements</a> </li>
|
||||
{% if has_permission %}
|
||||
<li><a href="#">Calendrier</a> </li>
|
||||
{% if user.is_superuser %}
|
||||
<li><a href="{% url 'admin:index' %}">Administration</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue