]> git.parisson.com Git - mezzo.git/commitdiff
Fix the EventImage in home slider
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Tue, 27 Sep 2016 15:53:10 +0000 (17:53 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Tue, 27 Sep 2016 15:53:10 +0000 (17:53 +0200)
app/templates/home/inc/slider.html

index f0031e5c235ca2a329d939583cccfa123db213d4..f938b3531fe85f2b1b7495526fc005c96e7a3690 100644 (file)
@@ -4,8 +4,7 @@
         {% for slider in home.dynamiccontenthomeslider_set.all %}
                 {% with slider.content_object.images.all|get_type:'slider' as images %}
                     {% if images %}
-                        <li class="slider-home__slide" style="background-image: url({{ MEDIA_URL }}{% thumbnail images.0.file 1440 760 %});">
-                            <!--<img src="{{ MEDIA_URL }}{{ images.0.file }}" title="{{ images.0.credits }}" />-->
+                        <li class="slider-home__slide" style="background-image: url('{{ MEDIA_URL }}{% thumbnail images.0.file 1440 760 %}');">
                             <div class="slider-home__wrapper">
                                 <div class="container">
                                     <div class="row">
                                                 <div class="article-box__content tal">
                                                     <h3 class="article-box__title">{{ slider.content_object.title }}</h3>
                                                     <div class="article-box__subtitle">
-                                                        <strong>{{ slider.content_object.sub_title }}</strong>
+                                                        {{ slider.content_object.sub_title }}
                                                         {% if slider.content_object.start %}
                                                             {% with slider.content_object as event %}
-                                                                <strong>
-                                                                    {% include 'agenda/includes/event_date.html' %}
-                                                                </strong>
+                                                                {% if slider.content_object.sub_title %}
+                                                                    <br />
+                                                                {% endif %}
+                                                                {% include 'agenda/includes/event_date.html' %}
                                                             {% endwith %}
                                                         {% endif %}
                                                         {% if slider.content_object.location %}