{% extends "zinnia/base.html" %} {% load i18n zinnia_tags %} {% block meta-description %}{% trans "Latest entries for" %} {% if category %}{% trans "the category" %} {{ category }}{% if category.description %}: {{ category.description|striptags|safe }}{% endif %}{% endif %}{% if tag %}{% trans "the tag" %} {{ tag }}{% endif %}{% if author %}{% trans "the author" %} {{ author }}{% endif %}{% if page_obj %}{% ifnotequal page_obj.number 1 %} {% trans "page" %} {{ page_obj.number }}{% endifnotequal %}{% endif %}{% endblock %} {% block link %} {{ block.super }} {% if category %} {% endif %} {% if tag %} {% endif %} {% if author %} {% endif %} {% endblock %} {% block title %}{% trans "Latest entries" %} {% if category %}| {% trans "Category" %} {{ category }}{% endif %}{% if tag %}| {% trans "Tag" %} {{ tag }}{% endif %}{% if author %}| {% trans "Author" %} {{ author }}{% endif %}{% if page_obj %}{% ifnotequal page_obj.number 1 %} | {% trans "Page" %} {{ page_obj.number }}{% endifnotequal %}{% endif %}{% endblock %} {% block content %} {% if category %}

{{ category.title }}

{% if category.description %}

{{ category.description|striptags|safe }}

{% endif %} {% endif %} {% if tag %}

{% trans "Tag" %} : {{ tag }}

{% endif %} {% if author %}

{% blocktrans with author.username as author %}Entries by {{ author }}{% endblocktrans %}

{% endif %} {% for object in object_list %}
{% with object.html_content|truncatewords_html:100|safe as object_content %} {% include "zinnia/_entry_detail.html" %} {% endwith %}

{% empty %} {% trans "No entries yet." %} {% endfor %} {% if is_paginated %} {% zinnia_pagination page_obj %} {% endif %} {% endblock %} {% block admin_tools %} {% if category and perms.zinnia.change_category %}
  • {% trans "Edit the category" %}
  • {% endif %} {% if tag and perms.tagging.change_tag %}
  • {% trans "Edit the tag" %}
  • {% endif %} {% if author and perms.auth.change_user %}
  • {% trans "Edit the author" %}
  • {% endif %} {% endblock %}