{% from "macros/user.html" import m_user_link, m_user_photo %} {%- macro m_postinfos(post) %} {%- set author_href = url_for("social.user", user_id=post.creator.id) %} {%- set thread_href = url_for(".thread", thread_id=post.thread_id, community_id=g.community.slug) %} {{ post.thread.title }} {% call m_user_link(post.creator) %} {{ m_user_photo(post.creator, size=35) }} {% endcall %} {%- endmacro %} {%- macro m_postattachments(post) %} {%- if post.attachments %} {{ m_postinfos(post) }} {%- for attachment in post.attachments %} {%- endfor %}
{{ attachment.name |truncate(70, False, '...', 0) }} {{ attachment.content_length|filesize }}
{%- endif %} {%- endmacro %} {% macro forum_menu(global_actions) %} {%- for action in global_actions %} {% if loop.index == 2 %} {% else %}
{{ action.render() }}
{% endif %} {%- endfor %} {% endmacro %}