{% extends "lfc/base.html" %} {% load i18n %} {% load lfc_tags %} {% load portlets_tags %} {% load tagging_tags %} {% load pagination_tags %} {% load comments %} {% block comments %}{% endblock %} {% block content %} {% if lfc_context.get_title %}

{{ lfc_context.get_title }}

{% endif %} {% autopaginate sub_objects %}
{% paginate %}
{{ lfc_context.text|safe }} {% for sub_obj in sub_objects %}

{{sub_obj.title}}

{% trans 'Posted on' %} {{ sub_obj.publication_date|date:"d.m.Y" }} {% trans 'by' %} {% if sub_obj.creator.last_name %} {{ sub_obj.creator.first_name }} {{ sub_obj.creator.last_name }} {% else %} {{ sub_obj.creator.username }} {% endif %} {% tags_for_object sub_obj as tag_list %} {% if tag_list %} {% trans 'within' %} {% for tag in tag_list %} {{ tag }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %} {% get_comment_count for sub_obj as comment_count %} | {% ifequal comment_count 1 %} {% trans 'One comment' %} {% else %} {{comment_count}} {% trans 'comments' %} {% endifequal %}
{% if sub_obj.get_image %} {{ sub_obj.get_image.image.title }} {% endif %}
{{sub_obj.text|safe}}

{% endfor %} {% endblock %}