From: Jérémy Fabre Date: Wed, 15 Feb 2017 10:24:32 +0000 (+0100) Subject: Linked events and articles in person details X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d48bcdeeffde36acef41b8d18afc7de5476b5b43;p=mezzo.git Linked events and articles in person details --- diff --git a/app/static/src/sass/modules/boxes/_event-line-box.scss b/app/static/src/sass/modules/boxes/_event-line-box.scss index 518104aa..93925a56 100644 --- a/app/static/src/sass/modules/boxes/_event-line-box.scss +++ b/app/static/src/sass/modules/boxes/_event-line-box.scss @@ -35,6 +35,10 @@ $module: ".event-line-box"; @include margin-bottom(1); } + .lightSlider & { + margin-bottom: 0 !important; + } + &:after { content: ""; diff --git a/app/templates/network/person_detail.html b/app/templates/network/person_detail.html index 8231600d..2b96d12c 100644 --- a/app/templates/network/person_detail.html +++ b/app/templates/network/person_detail.html @@ -80,6 +80,82 @@ {% endblock %} +{% block page_related_content %} + +{% if related.event %} +
+
+
+
+

{% trans "Linked events" %}

+
+
+
+
+
+ + {% for event in related.event %} +
+ +
+ +
+ {% include 'agenda/includes/event_linecard.html' %} +
+ +
+ +
+ {% endfor %} + +
+
+
+
+
+{% endif %} + +{% if related.other %} +
+
+
+
+

{% trans "Linked contents" %}

+
+
+
+
+
+ + {% for concrete_object in related.other %} + {% if forloop.counter0 == 0 or forloop.counter|divisibleby:3 %} +
+
+ {% endif %} + +
+ {% with app_label=concrete_object|app_label_short classname=concrete_object|classname|lower object=concrete_object %} + {% with app_label|add:"/"|add:classname|add:"/includes/"|add:classname|add:"_card.html" as template %} + {% include template %} + {% endwith %} + {% endwith %} +
+ + {% if forloop.last or forloop.counter|divisibleby:2 %} +
+
+ {% endif %} + {% endfor %} + +
+
+
+
+
+{% endif %} + +{% endblock %} + {% block page_sidebar %}
{% include "includes/share_buttons.html" %}