2018-08-15 03:12:58 +02:00
|
|
|
{% extends 'news/master.twig' %}
|
2018-10-22 21:53:21 +02:00
|
|
|
{% from 'macros.twig' import container_title %}
|
2018-08-15 03:12:58 +02:00
|
|
|
{% from '_layout/comments.twig' import comments_section %}
|
2018-12-11 02:20:18 +01:00
|
|
|
{% from 'news/macros.twig' import news_post %}
|
2018-04-14 04:58:53 +02:00
|
|
|
|
|
|
|
{% set title = post.post_title ~ ' :: News' %}
|
2019-02-28 22:52:39 +01:00
|
|
|
{% set canonical_url = url('news-post', {'post': post.post_id}) %}
|
2018-10-10 14:25:18 +02:00
|
|
|
{% set manage_link = '/manage/news.php?v=post&p=' ~ post.post_id %}
|
2018-04-14 04:58:53 +02:00
|
|
|
|
2018-08-12 20:49:21 +02:00
|
|
|
{% block content %}
|
2018-12-11 02:20:18 +01:00
|
|
|
{{ news_post(post) }}
|
2018-04-16 02:33:54 +02:00
|
|
|
|
2018-08-10 06:20:54 +02:00
|
|
|
{% if comments is defined %}
|
|
|
|
<div class="container">
|
2018-12-27 03:59:57 +01:00
|
|
|
{{ container_title('<i class="fas fa-comments fa-fw"></i> Comments') }}
|
2018-08-10 06:20:54 +02:00
|
|
|
{{ comments_section(comments, comments_category, current_user|default(null), comments_perms) }}
|
2018-04-16 02:33:54 +02:00
|
|
|
</div>
|
2018-08-10 06:20:54 +02:00
|
|
|
{% endif %}
|
2018-04-14 04:58:53 +02:00
|
|
|
{% endblock %}
|