{% macro post_template(type, post, information_icon, post_url, current_url, related_posts) %} {% if post %}

{{ post.title }}

{{ 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 type == 'all' %}#} {#{% if related_posts %}#} {#

Related

#} {#{% for post in 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

{% endif %}
{#{% if type == 'all' %}#} {#{% if post.children.count %}#} {#{% for child in post.children %}#} {#{% if child.id != post.id %}#} {#{{ _self.post_template('all', child) }}#} {#{% endif %}#} {#{% endfor %}#} {#{% endif %}#} {#{% endif %}#} {% endif %} {% endmacro %} {% import _self as template %}
{{ back_link }}

{{ care_title }} - {{ student_info.complete_name }} - {{ post.title }} {% if post.parent %} {{ post.parent.title }} {% endif %}

{% for post in related_posts %} {{ template.post_template('all', post, information_icon, post_url, current_url) }} {% endfor %} {#{{ template.post_template('all', post, information_icon, post_url, current_url, related_posts) }}#}