]> git.parisson.com Git - mezzo.git/commitdiff
Fix event list display
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 10 Nov 2016 09:15:21 +0000 (10:15 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 10 Nov 2016 09:15:21 +0000 (10:15 +0100)
app/templates/agenda/event_list.html

index f2f4f18bc48e13a160ce810239a76403fabb603b..81ff7d5811a1ab9428247795ed64f2e05dc02dfd 100644 (file)
 
 {% block breadcrumb_menu %}
     {{ block.super }}
-    
+
 {% endblock %}
 
 {% block main %}
     <div class="page page--{% spaceless %}{% block page_class %}{% endblock %}{% endspaceless %}">
-
         <div class="container">
-
             <div class="row">
-
                 <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2">
-
                     <h1 class="dotted">
-                        {{ page.title }}
+                        {% if tag and tag|tag_is_excluded %}
+                            {% trans "Tournées" %}
+                        {% elif is_archive %}
+                            {% trans 'Archives' %}
+                        {% else %}
+                            {{ page.title }}
+                        {% endif %}
                     </h1>
-
                 </div>
-
             </div>
 
             <div class="row">
-
                 <div class="col-sm-3 col-lg-2 page__sidebar">
-
                     <div style="position: relative;" >
-
                         {% if tag and not tag|tag_is_excluded or not tag and not is_archive %}
                         <a class="banner banner--light banner--sidebar hide-until-sm" href="{% url 'event_list_tag' 'tournees' %}" style="background-image:url({% static 'img/services/tours.jpg' %});">
-
                             <div class="banner__content">
-
                                 <div class="banner__title fsxxxl">
                                     Tournées {{ CURRENT_SEASON_STYLED }}
                                 </div>
-
                             </div>
-
                         </a>
                         {% endif %}
 
                         <div class="nav-tree-wrapper" data-sticky data-sticky-parent="row" data-sticky-offset="100" data-sticky-detach-at="971">
-
-                            {% page_menu "pages/menus/current_tree_event.html" %}
-
-                            {% comment %}
-                            <ul class="nav-tree nav-tree--level-{{ branch_level }}">
-                                <li class="nav-tree__item">
-                                    <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 in Paris" %}
-                                        {% endif %}
-                                    </a>
-
-                                    <ul class="nav-tree" data-summary>
-                                        <li class="nav-tree__item nav-tree__item--sub hide">
-                                            <a class="nav-tree__link nav-tree__link--sub" href="#"></a>
-                                        </li>
-                                    </ul>
-                                </li>
-
-                                {% if is_archive %}
+                            {% if not tag and not is_archive %}
+                                {% page_menu "pages/menus/current_tree_event.html" %}
+                            {% else %}
+                                <ul class="nav-tree nav-tree--level-{{ branch_level }}">
                                     <li class="nav-tree__item">
-                                        <a class="nav-tree__link" href="{% url 'event_list' %}">
-                                            {% trans "Rendez-vous in Paris" %}
+                                        <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 in Paris" %}
+                                            {% endif %}
                                         </a>
-                                    </li>
-                                {% endif %}
 
-                                {% if tag and tag|tag_is_excluded %}
-                                    <li class="nav-tree__item">
-                                        <a class="nav-tree__link" href="{% url 'event_list' %}">
-                                            {% trans "Rendez-vous in Paris" %}
-                                        </a>
+                                        <ul class="nav-tree" data-summary>
+                                            <li class="nav-tree__item nav-tree__item--sub hide">
+                                                <a class="nav-tree__link nav-tree__link--sub" href="#"></a>
+                                            </li>
+                                        </ul>
                                     </li>
-                                {% else %}
-                                    <li class="nav-tree__item">
-                                        <a class="nav-tree__link" href="{% url 'event_list_tag' 'tournees' %}">
-                                            {% trans "Tournées" %}
-                                        </a>
-                                    </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 %}
-
-                            </ul>
-
-                        {% endcomment %}
+                                    {% if is_archive %}
+                                        <li class="nav-tree__item">
+                                            <a class="nav-tree__link" href="{% url 'event_list' %}">
+                                                {% trans "Rendez-vous in Paris" %}
+                                            </a>
+                                        </li>
+                                    {% endif %}
 
-                                {% if tag and not tag|tag_is_excluded or not tag and not is_archive %}
+                                    {% if tag and tag|tag_is_excluded %}
+                                        <li class="nav-tree__item">
+                                            <a class="nav-tree__link" href="{% url 'event_list' %}">
+                                                {% trans "Rendez-vous in Paris" %}
+                                            </a>
+                                        </li>
+                                    {% else %}
+                                        <li class="nav-tree__item">
+                                            <a class="nav-tree__link" href="{% url 'event_list_tag' 'tournees' %}">
+                                                {% trans "Tournées" %}
+                                            </a>
+                                        </li>
+                                    {% endif %}
 
-                                    <ul class="nav-tree nav-tree--level-{{ branch_level }}">
+                                    {% 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 %}
+                                </ul>
+                            {% endif %}
 
-                                    {% keywords_for mezzanine_agenda.event as tags %}
+                            {% if tag and not tag|tag_is_excluded or not tag and not is_archive %}
+                                <ul class="nav-tree nav-tree--level-{{ branch_level }}">
+                                {% keywords_for mezzanine_agenda.event as tags %}
                                     {# {% all_events as all_events %}#}
                                     {% if tags %}
                                         {% comment %}
                                             {% endif %}
                                         {% endfor %}
                                     {% endif %}
-
-                                    </ul>
-
-                                {% endif %}
-
+                                </ul>
+                            {% endif %}
                         </div>
-
                     </div>
                 </div>
 
                 <div class="mb2 col-sm-9 col-lg-10 page__content" data-summary-content>
-
                     <div class="page__content">
                         <div class="container">
-
                             {% for event in events.object_list %}
                                 {% include 'agenda/includes/event_linecard.html' %}
                             {% endfor %}
-
                             {% if tag and not tag|tag_is_excluded or not tag and not is_archive %}
                             <a class="banner banner--light banner--sidebar hide-from-sm" href="{% url 'event_list_tag' 'tournees' %}" style="background-image:url({% static 'img/services/tours.jpg' %});">
-
                                 <div class="banner__content">
-
                                     <div class="banner__title fsxxxl">
                                         Tournées {{ CURRENT_SEASON_STYLED }}
                                     </div>
-
                                 </div>
-
                             </a>
                             {% endif %}
-
                         </div>
                     </div>
-
                 </div>
-
             </div>
-
         </div>
-
     </div>
 {% endblock %}