{% extends "zinnia/base.html" %} {% load i18n tagging_tags zinnia_tags %} {% 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 %}
{% blocktrans with page_obj.number as current_page and paginator.num_pages as total_page %}Page {{ current_page }} of {{ total_page }}{% endblocktrans %} {% if page_obj.has_previous %} « {% endif %} {% for page in page_range %} {% ifequal page_obj.number page %} {{ page }} {% else %} {{ page }} {% endifequal%} {% endfor %} {% if page_obj.has_next %} » {% endif %}
{% 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 %}