{% extends 'base.html' %} {% block contents %}

Entry list

{% for object in object_list %}

{{ object.title }}

{% if user.is_authenticated %} {% endif %} {% if object.author == object.updated_by %}

Written by {{ object.author }}

{% else %}

Originally written by {{ object.author }} and updated by {{ object.updated_by|default:'Anonymous' }}

{% endif %}
{{ object.body|linebreaks|truncatewords_html:50 }}
{% endfor %}
{% endblock %}