From: Jérémy Fabre Date: Wed, 15 Feb 2017 14:29:49 +0000 (+0100) Subject: Add person cards on home to responsive devices X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=71f3df4905dc5b0e37d4c87cac83d49b9d62e960;p=mezzo.git Add person cards on home to responsive devices --- diff --git a/app/templates/home/inc/slider.html b/app/templates/home/inc/slider.html index 0deffe4c..ffa21b73 100644 --- a/app/templates/home/inc/slider.html +++ b/app/templates/home/inc/slider.html @@ -92,7 +92,7 @@ {% endif %} {% load i18n pages_tags mezzanine_tags media_tags organization_tags %} -
+
@@ -108,6 +108,10 @@ {% include "agenda/event/includes/event_card.html" with object=slider.content_object %} {% elif slider.content_type.model == "custompage" %} {% include "pages/page/includes/page_card.html" with object=slider.content_object %} + {% elif slider.content_type.model == "media" %} + {% include "media/media/includes/media_card.html" with object=slider.content_object %} + {% elif slider.content_type.model == "person" %} + {% include "network/person/includes/person_card.html" with object=slider.content_object %} {% endif %}
{% endif %} diff --git a/app/templates/network/person/includes/person_card.html b/app/templates/network/person/includes/person_card.html index 04f15c04..724bde9c 100644 --- a/app/templates/network/person/includes/person_card.html +++ b/app/templates/network/person/includes/person_card.html @@ -35,5 +35,5 @@ {% endblock %} {% block content %} - {{ object.bio|richtext_filters|safe|truncatechars_html:200 }} + {{ object.description|richtext_filters|safe|truncatechars_html:200 }} {% endblock %}