{% from "_macros.html" import content_url %}
{% set _href = content_url(item.post, 'posts') %}
{% set _label = item.post.get('title') or 'View post' %}
{% include "_card_link.html" %}
{% set _created = item.post.get('created_at') %}{% include "_post_header.html" %}
{% endif %}
{% if item.project_link %}
Project: {{ item.project_link.name }}
{% endif %}
{% set attachments = item.get('attachments', []) %}
{% if attachments %}
{% include "_attachment_display.html" %}
{% endif %}
{% if item.poll %}
{% set _poll = item.poll %}{% include "_poll.html" %}
{% endif %}
{% if item.war %}
{% set _war = item.war %}{% include "_opinion_war.html" %}
{% endif %}
{% set _uid = item.post['uid'] %}{% set _my_vote = item.my_vote %}{% set _count = item.post.get('stars', 0) %}{% include "_post_votes.html" %}
💬 {{ item.comment_count }}
{% set _type = "post" %}{% set _uid = item.post['uid'] %}{% set _reactions = item.reactions %}{% include "_reaction_bar.html" %}
↗︎ Open
{% if _show_share %}
{% endif %}
{% set _type = "post" %}{% set _uid = item.post['uid'] %}{% set _bookmarked = item.bookmarked %}{% include "_bookmark_button.html" %}
{% set _type = "post" %}{% set _uid = item.post['uid'] %}{% set _owner = item.post['user_uid'] %}{% set _owner_name = (item.author or {}).get('username', '') %}{% set _class = "post-action-btn" %}{% include "_report_button.html" %}
{% if owns(item.post, user) or is_admin(user) %}
{% endif %}
{% if item.recent_comments %}
{% from "_comment.html" import render_comment with context %}
{% for c in item.recent_comments %}
{{ render_comment(c, 0) }}
{% endfor %}
{% endif %}
{% if _show_comment_form %}
{% set _comment_target_uid = item.post['uid'] %}{% set _comment_target_type = "post" %}{% include "_comment_form.html" %}
{% endif %}