]> git.parisson.com Git - mezzo.git/commitdiff
Add person cards on home to responsive devices
authorJérémy Fabre <Jeremy@iMacdeJeremy2.fritz.box>
Wed, 15 Feb 2017 14:29:49 +0000 (15:29 +0100)
committerJérémy Fabre <Jeremy@iMacdeJeremy2.fritz.box>
Wed, 15 Feb 2017 14:29:49 +0000 (15:29 +0100)
app/templates/home/inc/slider.html
app/templates/network/person/includes/person_card.html

index 0deffe4c8c718416615e53dcf6741c7a5c37456b..ffa21b73905badec3ed3e5ca651d38e5aef4c41b 100644 (file)
@@ -92,7 +92,7 @@
 {% endif %}
 
 {% load i18n pages_tags mezzanine_tags media_tags organization_tags %}
-<div class="container hide-from-xs">
+<div class="container hide-from-sm">
     <div class="row">
         <div class="col-sm-12 col-sm-push-2 tac">
             <div class="row">
                                     {% 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 %}
                             </div>
                         {% endif %}
index 04f15c04cc723caba2d2788a35d30f0275d4d571..724bde9c69805b36fce90997cbdf33fd87294567 100644 (file)
@@ -35,5 +35,5 @@
 {% endblock %}
 
 {% block content %}
-    {{ object.bio|richtext_filters|safe|truncatechars_html:200 }}
+    {{ object.description|richtext_filters|safe|truncatechars_html:200 }}
 {% endblock %}