diff --git a/newsbox/templates/newsbox/inc/list.html b/newsbox/templates/newsbox/inc/list.html index 35c662c0865ff911b626d81ffa2b184fbf83b841..69a49a61962a70cdd7942948ba90df6e8a2cc18a 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 d8966ff371a3a38db560f36146e72525fbad087b..67b5b7fa53fea81254c7dd2e593dc8eae2758259 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