From aa3d8aba53f6b1c0b9ec8ab54e2c98bd73704270 Mon Sep 17 00:00:00 2001 From: DylannCordel <d.cordel@webu.coop> Date: Thu, 12 Jan 2017 09:44:29 +0100 Subject: [PATCH] fix template --- newsbox/templates/newsbox/inc/list.html | 2 +- newsbox_cms/templates/newsbox_cms/inc/list.html | 17 +---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/newsbox/templates/newsbox/inc/list.html b/newsbox/templates/newsbox/inc/list.html index 35c662c..69a49a6 100644 --- a/newsbox/templates/newsbox/inc/list.html +++ b/newsbox/templates/newsbox/inc/list.html @@ -59,7 +59,7 @@ {% for object in object_list %} {% block newsbox_list_item %} - {% include 'newsbox/inc/list-item.html' %} + {% include model_opts.app_label|add:'/inc/'|add:model_opts.model_name|add:'-list-item.html' %} {% endblock %} {% endfor %} diff --git a/newsbox_cms/templates/newsbox_cms/inc/list.html b/newsbox_cms/templates/newsbox_cms/inc/list.html index d8966ff..67b5b7f 100644 --- a/newsbox_cms/templates/newsbox_cms/inc/list.html +++ b/newsbox_cms/templates/newsbox_cms/inc/list.html @@ -5,19 +5,4 @@ {% block newsbox_list_header %} {% render_model_add model %} {{ block.super }} -{% endblock %} - -{% block newsbox_list_item_header %} - {% render_model_icon object %} - {{ block.super }} -{% endblock %} - -{% block newsbox_list_item_content %} - <div class="summary"> - {{ object.newsbox_summary|safe }} - {% render_placeholder object.newsbox_body as body %} - </div> - {% if body %} - <a class="readmore" href="{{ object.get_absolute_url }}">{% trans "Read more" %}</a> - {% endif %} -{% endblock %} +{% endblock %} \ No newline at end of file -- GitLab