{% macro post_template(type, post, information_icon, post_url, current_url, related_posts) %} {% if post %}
{{ post.content }}
{% if type == 'simple' %} {% set countElements = post.hasParent + post.children.count %} {% if countElements %} {% if countElements > 1 %} {{ information_icon }} + {{ countElements }} {% else %} {{ information_icon }} + 1 {% endif %} {% endif %} {% endif %} {% if post.attachment %} {{ 'Download' | get_lang }} {% endif %} {#{% if type == 'all' %}#} {#{% if related_posts %}#} {##} {##} {#{{ post.title }}#} {##} {#
#} {#{% endfor %}#} {#{% endif %}#} {#{% endif %}#}{{ post.createdAt |date('d/m/Y') }}
{{ post.insertUser.completeName }}
{% if post.tags %} {% for tag in post.tags %} {{ tag }} {% if not loop.last %} , {% endif %} {% endfor %} {% endif %} {% if post.private %}{{ 'Private'|get_plugin_lang('StudentFollowUpPlugin') }}
{% else %}{{ 'Public'|get_plugin_lang('StudentFollowUpPlugin') }}
{% endif %}