]> git.parisson.com Git - mezzo.git/commitdiff
Update event archives links
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Fri, 21 Oct 2016 13:56:33 +0000 (15:56 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Fri, 21 Oct 2016 13:56:33 +0000 (15:56 +0200)
app/templates/agenda/event_list.html

index ed4a0269335a1c09297ccc0636cc9030a786e860..2b326470f11bbf3b98d04c1c332bbab1ae9cbd6d 100644 (file)
                                 <a class="nav-tree__link active" href="{% url 'event_list' %}">
                                     {% if tag and tag|tag_is_excluded %}
                                         {% trans "Tournées" %}
+                                    {% elif is_archive %}
+                                        {% trans 'Archives' %}
                                     {% else %}
                                         {% trans "Rendez-vous" %}
                                     {% endif %}
                                 </ul>
                             </li>
 
+                            {% if is_archive %}
+                                <li class="nav-tree__item">
+                                    <a class="nav-tree__link" href="{% url 'event_list' %}">
+                                        {% trans "Rendez-vous" %}
+                                    </a>
+                                </li>
+                            {% endif %}
+
                             {% if tag and tag|tag_is_excluded %}
                                 <li class="nav-tree__item">
                                     <a class="nav-tree__link" href="{% url 'event_list' %}">
                                 </li>
                             {% endif %}
 
-
+                            {% if not is_archive %}
+                                <li class="nav-tree__item">
+                                    <a class="nav-tree__link" href="{% url "event_list_year" CURRENT_SEASON %}" title="{% trans 'archive' %}">{% trans 'Archives' %}</a>
+                                </li>
+                            {% endif %}
 
                             {% if tag and not tag|tag_is_excluded or not tag and not is_archive %}
 
             </div>
 
         </div>
-        {% if not is_archive %}
-            <div><a href="{% url "event_list_year" CURRENT_SEASON %}" title="{% trans 'archive' %}">{% trans 'archive' %}</div>
-        {% endif %}
+
     </div>
 {% endblock %}