]> git.parisson.com Git - mezzo.git/commitdiff
cleanup
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 11 Oct 2016 10:14:54 +0000 (12:14 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 11 Oct 2016 10:14:54 +0000 (12:14 +0200)
app/templates/agenda/event_detail.html

index 9b7319abade3f1d6da2ee3579d6959ab5f60cddf..c494d6bb1cd0f422b7c84b982c6f63a8564144b1 100644 (file)
         </p>
     {% endif %}
 
-    {% comment %}
-        {% if event.location %}
-        <h3 class="section__title">Le lieu :</h3>
-        {% block event_detail_location %}
-        <a href="{% url 'location-detail' event.location.slug %}">{{ event.location }}</a>
-        <p>
-            <p>{{ event.location }} {{ event.location.address|linebreaksbr }}</p>
-            <p>{% trans "Room" %} {{ event.location.room }}</p>
-            <a href="{{ event|google_nav_url }}" target="_blank">
-                Get Directions
-            </a>
-        </p>
-        <a href="{{ event|google_nav_url }}" target="_blank" class="">
-             {% google_static_map event 900 300 15 %}
-        </a/>
-        {% endblock %}
-        {% endif %}
-
-        {% block event_detail_keywords %}
-        {% keywords_for event as tags %}
-        {% if tags %}
-        {% spaceless %}
-        <ul class="list-inline tags">
-            <li>{% trans "Tags" %}:</li>
-            {% for tag in tags %}
-            <li><a href="{% url "event_list_tag" tag.slug %}">{{ tag }}</a></li>
-            {% endfor %}
-        </ul>
-        {% endspaceless %}
-        {% endif %}
-        {% endblock %}
-
-        {% block event_detail_rating %}
-        <div class="panel panel-default rating">
-            <div class="panel-body">
-            {% rating_for event %}
-            </div>
-        </div>
-        {% endblock %}
-    {% endcomment %}
-
 {% endblock %}
 
 {% block page_link %}
                     </div>
                 {% endif %}
             {% endwith %}
+            {% with child.links.all as links %}
+                {% if links %}
+                    <div class="col-xs-6">
+                        {% include 'core/inc/link.html' %}
+                    </div>
+                {% endif %}
+            {% endwith %}
             {% if event.mentions %}
                 <div class="col-xs-6">
                     <div class="small-text">
             {% editable event.start event.end event.location %}
                 {% with True as unit_booking %}
                     {% include 'agenda/includes/event_metainfo.html' %}
-                    {% for child in event.children.all %}
-                        {% with child as event %}
-                            {% include "agenda/includes/event_metainfo.html" %}
-                        {% endwith %}
-                    {% endfor %}
                 {% endwith %}
             {% endeditable %}
         {% endblock %}