|
@@ -1,5 +1,6 @@
|
|
|
<!doctype html>
|
|
|
{% load staticfiles %}
|
|
|
+{% load activelink %}
|
|
|
<html class="no-js" lang="en">
|
|
|
<head>
|
|
|
<meta charset="utf-8" />
|
|
@@ -24,16 +25,15 @@
|
|
|
|
|
|
<div class="row">
|
|
|
<div class="large-3 columns">
|
|
|
- {% block sidenav %}
|
|
|
+ {% block sidenav %}
|
|
|
<nav id="sidebox" class="hide-for-small">
|
|
|
<h3 id="nav">Navigation</h3>
|
|
|
- ::{{ request.path_info }}
|
|
|
<ul class="side-nav">
|
|
|
- <li {% if request.path_info == "home" %}class="active"{% endif %}><a href="{% url 'home' %}">Tableau de bord</a></li>
|
|
|
- <li {% if request.path_info == "members/info" %}class="active"{% endif %}><a href="{% url 'members:infos' %}">Mes informations personnelles</a></li>
|
|
|
- <li {% if request.get_full_path == "/members/abo/" %}class="active"{% endif %}><a href="/members/abo/">Mes abonnements</a></li>
|
|
|
- <li {% if request.get_full_path == "/members/contact/" %}class="active"{% endif %}><a href="/members/contact/">Contact / Support</a></li>
|
|
|
- <li {% if request.get_full_path == "/members/logout/" %}class="active"{% endif %}><a href="{% url 'members:logout' %}">Déconnexion</a></li>
|
|
|
+ <li class="{% ifactive 'home' %}active{% endifactive %}"><a href="{% url 'home' %}">Tableau de bord</a></li>
|
|
|
+ <li class="{% ifactive 'members:infos' %}active{% endifactive %}"><a href="{% url 'members:infos' %}">Mes informations personnelles</a></li>
|
|
|
+ <li class="{% ifactive '' %}active{% endifactive %}"><a href="/members/abo/">Mes abonnements</a></li>
|
|
|
+ <li class="{% ifactive '' %}active{% endifactive %}"><a href="/members/contact/">Contact / Support</a></li>
|
|
|
+ <li class="{% ifactive '' %}active{% endifactive %}"><a href="{% url 'members:logout' %}">Déconnexion</a></li>
|
|
|
</ul>
|
|
|
</nav>
|
|
|
{% endblock %}
|
|
@@ -44,7 +44,7 @@
|
|
|
{% block content %}{% endblock %}
|
|
|
</div>
|
|
|
|
|
|
- <aside class="left-off-canvas-menu">
|
|
|
+ <aside class="left-off-canvas-menu">
|
|
|
<ul class="off-canvas-list">
|
|
|
<li><label>Navigation</label></li>
|
|
|
<li><a href="#">Tableau de bord</a></li>
|