12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- {% macro post_template(type, post, information_icon, post_url, current_url, related_posts) %}
- {% if post %}
- <div class="panel panel-default">
- <div class="panel-body">
- <div class="row">
- <div class="col-md-8">
- <h2>{{ post.title }}</h2>
- <p>{{ post.content }}</p>
- {% if type == 'simple' %}
- {% set countElements = post.hasParent + post.children.count %}
- {% if countElements %}
- <a href="{{ post_url }}&post_id={{ post.id }}">
- {% if countElements > 1 %}
- {{ information_icon }} + {{ countElements }}
- {% else %}
- {{ information_icon }} + 1
- {% endif %}
- </a>
- {% endif %}
- {% endif %}
-
-
-
-
-
-
-
-
-
-
-
-
- </div>
- <div class="col-md-4">
- <p>{{ post.createdAt |date('d/m/Y') }}</p>
- <p>{{ post.insertUser.completeName }}</p>
- {% if post.tags %}
- {% for tag in post.tags %}
- {{ tag }}
- {% if not loop.last %}
- ,
- {% endif %}
- {% endfor %}
- {% endif %}
- {% if post.private %}
- <p><span class="label label-warning">Private</span></p>
- {% endif %}
- </div>
- </div>
- </div>
- </div>
-
-
-
-
-
-
-
-
-
- {% endif %}
- {% endmacro %}
- {% import _self as template %}
- <div class="actions">
- {{ back_link }}
- </div>
- <h2 class="text-center">
- {{ care_title }} - {{ student_info.complete_name }} - {{ post.title }}
- {% if post.parent %}
- {{ post.parent.title }}
- {% endif %}
- </h2>
- {% for post in related_posts %}
- {{ template.post_template('all', post, information_icon, post_url, current_url) }}
- {% endfor %}
|