]> git.parisson.com Git - mezzo.git/commitdiff
Merge branch 'dev' of git+ssh://git.forge.ircam.fr/ircam-www into dev
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 10 Oct 2016 08:05:42 +0000 (10:05 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 10 Oct 2016 08:05:42 +0000 (10:05 +0200)
# Conflicts:
# app/templates/shop/includes/product_list_square_style.html

1  2 
app/templates/pages/custompage.html
app/templates/shop/includes/product_list_square_style.html

index f3dc328fc016870fa5636009c3d253594cd27671,ef0235d85ea8413d9f79fade876183bb5c12e8ee..cfb3b245bfa2428bfdbe6fcab42e3996abe78e6c
    {% endwith %}
  {% endblock %}
  
+ {% block page_related_content %}
+     {{ block.super }}
+ {% endblock %}
  {% block products %}
 -    {% for page_product_list in page.custompage.product_lists.all %}
 -      {% with page_product_list.list as list %}
 -        {% with "shop/includes/product_list_"|add:list.style|add:"_style.html" as template %}
 -          {% include template %}
 -        {% endwith %}
 -      {% endwith %}
 -    {% endfor %}
 +    {% if page.custompage.product_lists.all|length > 0 %}
 +        {% for page_product_list in page.custompage.product_lists.all %}
 +          {% with page_product_list.list as list %}
 +            {% with "shop/includes/product_list_"|add:list.style|add:"_style.html" as template %}
 +              {% include template %}
 +            {% endwith %}
 +          {% endwith %}
 +        {% endfor %}
 +    {% endif %}
  {% endblock %}
  
  {% block logo %}
index 456970210c8a3e60d7fcbb75ca1d2670635fbf98,90877fdde3b36e6154f67da301307c338dbf9f37..eda5f3b65f8bc64362036636e2c358019acbee3e
              <div class="row tac">
                  {% for product_inline in list.products.all %}
                    {% with product_inline.product as product %}
 -                    {% with product.links.all|get_type_link:"link" as links %}
 -                        <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">
 -                            <div class="article-box article-box--person" >
 -                                {% if product.images.all %}
 -                                    <div class="article-box__header">
 -                                        <a href="{{ links.0 }}" target="_blank" title="{{ product.title }}">
 -                                            <figure class="article-box__image">
 -                                                <img class="lazyload" src="{{ MEDIA_URL }}{% thumbnail product.images.all.0 427 500 top=0.5 %}" alt="product"/>
 -                                            </figure>
 -                                        </a>
 -                                    </div>
 -                                {% endif %}
 -                                <div class="article-box__content tal">
 -                                    <a href="{{ links.0 }}" target="_blank" title="{{ product.title }}"><h3 class="article-box__title">{{ product.title }}</h3></a>
 -                                    {% if product.description %}
 -                                        <div class="article-box__desc">{{ product.description|richtext_filters|safe|truncatechars_html:255 }}</div>
 -                                    {% elif product.content %}
 -                                        <div class="article-box__desc">{{ product.content|richtext_filters|safe|truncatechars_html:255 }}</div>
 -                                    {% endif %}
 +                    <div class="col-lg-3 col-md-3 col-sm-4 col-xs-6">
 +                        <div class="article-box article-box--person" >
 +                            {% if product.images.all %}
 +                                <div class="article-box__header">
 +                                    <a href="{{ product.get_absolute_url }}" title="{{ product.title }}">
 +                                        <figure class="article-box__image">
 +                                            <img class="lazyload" src="{{ MEDIA_URL }}{% thumbnail product.images.all.0 427 500 top=0.5 %}" alt="product"/>
 +                                        </figure>
 +                                    </a>
                                  </div>
 +                            {% endif %}
 +                            <div class="article-box__content tal">
 +                                <a href="{{ product.get_absolute_url }}" title="{{ product.title }}"><h3 class="article-box__title">{{ product.title }}</h3></a>
 +                                {% if product.description %}
 +                                    <div class="article-box__desc">{{ product.description|richtext_filters|safe|truncatechars_html:255 }}</div>
 +                                {% elif product.content %}
 +                                    <div class="article-box__desc">{{ product.content|richtext_filters|safe|truncatechars_html:255 }}</div>
 +                                {% endif %}
                              </div>
                          </div>
-                     </div>
+                     {% endwith %}
                    {% endwith %}
                  {% endfor %}
              </div>