From: Guillaume Pellerin Date: Mon, 10 Oct 2016 08:11:52 +0000 (+0200) Subject: Fix event list, add product list circled style X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d9fa42d9a7692dbbc34419acad4d1a20296ef7a2;p=mezzo.git Fix event list, add product list circled style --- diff --git a/app/templates/agenda/includes/event_date.html b/app/templates/agenda/includes/event_date.html index ed5824c8..9082317c 100644 --- a/app/templates/agenda/includes/event_date.html +++ b/app/templates/agenda/includes/event_date.html @@ -22,7 +22,7 @@ {{ event.start|date:"H\hi" }} {% endif %} {% else %} - {{ event.start|date:"j F" }}
+ {{ event.start|date:"l j F" }}
{% for period in event.periods.all %} {% if period.date_to and period.date_to|date:"H:i" != "23:59" %} {{ period.date_from|date:"H\hi" }} - {{ period.date_to|date:"H\hi" }}
@@ -39,12 +39,12 @@ {% with event.periods.all|same_time_in_periods as same_time_in_periods %} {% for period in event.periods.all %} {% if period.date_to and period.date_to|date:"H:i" != "23:59" %} - {{ period.date_from|date:"j F" }} {% trans "from" %} {{ period.date_from|date:"H\hi" }} {% trans "to" %} {{ period.date_to|date:"H\hi" }}
+ {{ period.date_from|date:"l j F" }} {% trans "from" %} {{ period.date_from|date:"H\hi" }} {% trans "to" %} {{ period.date_to|date:"H\hi" }}
{% else %} {% if event.periods.all|length > 1 and not forloop.last %} - {{ period.date_from|date:"j" }}{% if event.periods.all|length == 2 %} {% trans "and" %} {% else %}, {% endif %} + {{ period.date_from|date:"l j" }}{% if event.periods.all|length == 2 %} {% trans "and" %} {% else %}, {% endif %} {% else %} - {{ period.date_from|date:"j F" }} + {{ period.date_from|date:"l j F" }} {% if event.periods.all|length > 1 and forloop.first %} {% trans "and" %}{% endif %} {% endif %} {% if same_time_in_periods and forloop.last %} diff --git a/app/templates/shop/includes/product_list_circle_style.html b/app/templates/shop/includes/product_list_circle_style.html index d0e75d6f..90877fdd 100644 --- a/app/templates/shop/includes/product_list_circle_style.html +++ b/app/templates/shop/includes/product_list_circle_style.html @@ -17,27 +17,29 @@
{% for product_inline in list.products.all %} {% with product_inline.product as product %} -
-
- {% if product.images.all %} -
- -
- product -
-
-
- {% endif %} -
-

{{ product.title }}

- {% if product.description %} -
{{ product.description|richtext_filters|safe|truncatechars_html:255 }}
- {% elif product.content %} -
{{ product.content|richtext_filters|safe|truncatechars_html:255 }}
+ {% with product.links.all|get_type_link:"link" as links %} +
+
+ {% if product.images.all %} +
+ +
+ product +
+
+
{% endif %} +
+

{{ product.title }}

+ {% if product.description %} +
{{ product.description|richtext_filters|safe|truncatechars_html:255 }}
+ {% elif product.content %} +
{{ product.content|richtext_filters|safe|truncatechars_html:255 }}
+ {% endif %} +
-
+ {% endwith %} {% endwith %} {% endfor %}