{% load i18n %} {% load static %} {% load unicms_contexts %} {% load unicms_templates %} {% settings_value "CMS_PUBLICATION_LIST_PREFIX_PATH" as page_news_suffix %} {% if publications %}
{% for item in publications %} {% if forloop.first %} {% if publications.count == 1 %}
{% else %}
{% endif %}
{% if item.publication.image_url %}
{% for cat in item.publication.categories %} {{ cat.name }} {% endfor %}
{% endif %}
{% for cat in item.publication.categories %} {{ cat.name }} {% endfor %}
{% trans "Published" %}: {{ item.date_start | date:"d/m/Y, H:i" }} {% include "includes/edit_news.html" with item=item %}

{{ item.publication.title }}

{% if item.publication.subheading %}

{{ item.publication.subheading }}

{% endif %} {% include "includes/social_share.html" with share_title=item.publication.title share_url=request.get_host|add:item.url %}
{% comment %} {% elif forloop.counter0 == 1 %}
{% for cat in item.publication.categories %} {{ cat.name }} {% endfor %}
{% trans "Published" %}: {{ item.date_start | date:"d/m/Y, H:i" }} {% include "includes/edit_news.html" with item=item %}

{{ item.publication.title }}

{% include "includes/social_share.html" with share_title=item.publication.title share_url=request.get_host|add:item.url %}
{% endcomment %} {% else %}
{% for cat in item.publication.categories %} {{ cat.name }} {% endfor %}
{% if item.publication.image_url %} {% endif %}
{% trans "Published" %}: {{ item.date_start | date:"d/m/Y, H:i" }} {% include "includes/edit_news.html" with item=item %}

{{ item.publication.title }}

{% if not item.publication.image_url %}

{{ item.publication.subheading}}

{% endif %} {% include "includes/social_share.html" with share_title=item.publication.title share_url=request.get_host|add:item.url %}
{% endif %} {% endfor %}

{% trans "Go to all news" %}

{% endif %}