Skip to content
Snippets Groups Projects
Commit aa3d8aba authored by Dylann Cordel's avatar Dylann Cordel :crossed_swords:
Browse files

fix template

parent 2a60a9cb
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
{% for object in object_list %} {% for object in object_list %}
{% block newsbox_list_item %} {% 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 %} {% endblock %}
{% endfor %} {% endfor %}
......
...@@ -5,19 +5,4 @@ ...@@ -5,19 +5,4 @@
{% block newsbox_list_header %} {% block newsbox_list_header %}
{% render_model_add model %} {% render_model_add model %}
{{ block.super }} {{ block.super }}
{% endblock %} {% endblock %}
\ No newline at end of file
{% 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 %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment