home templates: add links for non-COF users

Add links to
- change password page
- profile page
This commit is contained in:
Martin Pépin 2019-10-06 00:00:20 +02:00
parent 730611039b
commit 0814cfe1ef
No known key found for this signature in database
GPG key ID: E7520278B1774448

View file

@ -56,18 +56,19 @@
</ul>
</div>
{% if user.profile.is_cof %}
<h3 class="block-title">Divers<span class="pull-right glyphicon glyphicon-question-sign"></span></h3>
<div class="hm-block">
<ul>
<li><a href="{% url "calendar" %}">Calendrier dynamique</a></li>
{% if user.profile.is_cof %}<li><a href="{% url "petits-cours-inscription" %}">Inscription pour donner des petits cours</a></li>{% endif %}
<li><a href="{% url "profile" %}">Éditer mon profil</a></li>
{% if not user.profile.login_clipper %}<li><a href="{% url "password_change" %}">Changer mon mot de passe</a></li>{% endif %}
</ul>
<ul>
<li><a href="{% url "profile" %}">Éditer mon profil</a></li>
{% if user.profile.is_cof %}
<li><a href="{% url "calendar" %}">Calendrier dynamique</a></li>
<li><a href="{% url "petits-cours-inscription" %}">Inscription pour donner des petits cours</a></li>
{% endif %}
{% if not user.profile.login_clipper %}
<li><a href="{% url "password_change" %}">Changer mon mot de passe</a></li>
{% endif %}
</ul>
</div>
{% endif %}
</div>
{% if user.profile.is_buro %}
<div class="col-sm-6 buro-user-hm">