{% if not votes[post.id] %} ▲ {% endif %} |
{% if post.link|length > 0 %}
{{ post.title }}
{% else %}
{{ post.title }}
{% endif %}
by {{ post.username }} {{ post.created|ago }}
— {{ post.vote }} votes, {{ post.commentsCount }} comments
{% if user and post.userId == user.id %}
— Edit
{% endif %}
|
{{ post.text|markdown|raw }}
{% if user %}
{% endif %}
{% include 'comment.twig' with {
'post': post,
'comments': comments,
'parent_id': 0,
'depth': 0
} %}