From 91a369390a78fc3a0a1ff948c7ec6f95599e7554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt?= <b.charpentier@webu.coop> Date: Fri, 20 Jan 2017 11:02:42 +0100 Subject: [PATCH] template list-item : change the <div class=extra> by a <footer> --- newsbox/templates/newsbox/inc/list-item.html | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/newsbox/templates/newsbox/inc/list-item.html b/newsbox/templates/newsbox/inc/list-item.html index 4f90588..ae2c4dc 100644 --- a/newsbox/templates/newsbox/inc/list-item.html +++ b/newsbox/templates/newsbox/inc/list-item.html @@ -13,7 +13,6 @@ {% endblock %} </header> - <div> {% block newsbox_list_item_content %} <div class="summary"> {% with summary_max_words=summary_max_words|default:50 summary=summary|default:object.newsbox_summary|default:object.newsbox_body %} @@ -24,24 +23,21 @@ {% endif %} {% endwith %} </div> + {% endblock %} - {% block newsbox_list_item_content_extra %} - {% with readmore=readmore|default:object.newsbox_body %} + {% block newsbox_list_item_footer %} + {% with readmore=readmore|default:object.newsbox_body %} {% if object.newsbox_publication_start_date or readmore %} - <div class="extra"> + <footer> {% if object.newsbox_publication_start_date %} <time datetime="{{ object.newsbox_publication_start_date }}" pubdate="pubdate">{% blocktrans with date=object.newsbox_publication_start_date|date:'SHORT_DATE_FORMAT' %}published on {{ date }}{% endblocktrans %}</time> {% endif %} {% if readmore %} <a class="readmore" href="{{ object.get_absolute_url }}">{% trans "Read more" %}</a> {% endif %} - </div> + </footer> {% endif %} {% endwith %} - {% endblock newsbox_list_item_content_extra %} - {% endblock %} - </div> - - {% block newsbox_list_item_footer %}{% endblock newsbox_list_item_footer %} + {% endblock newsbox_list_item_footer %} </article> -- GitLab