{% extends "base.html" %} {% load i18n comments comments_xtd %} {% block header %}{{ block.super }}{% trans "Blog" %}{% endblock %} {% block content %}

Last story

{% if stories %} {% for item in stories %} {% get_comment_count for item as comment_count %}

{{ item.title }}

{{ item.body|truncatewords:50|linebreaks }}

{{ comment_count }} comment{{ comment_count|pluralize }}

{% endfor %}

{% trans "all stories" %}

{% else %}
No story yet.
{% endif %}

Last 5 quotes

{% if quotes %}
    {% for item in quotes %} {% get_comment_count for item as comment_count %}
  • {{ item.title }} {{ comment_count }} comment{{ comment_count|pluralize }}
    {% trans "by" %} {{ item.author }}
  • {% endfor %}

{% trans "all quotes" %}

{% else %}
No quote yet.
{% endif %}

Last 5 comments

{% get_xtdcomment_count as comment_count for blog.story blog.quote %} {% if comment_count %} {% render_last_xtdcomments 5 for blog.story blog.quote %} {% else %}
No comments yet.
{% endif %}

{% trans "all comments" %}

{% trans "Home" %}

{% endblock %}