{% macro avatar(username, size="24px", selector_type="username") -%} @{{ username }} {%- endmacro %} {% macro community_avatar(id, community=false, size="24px") -%} {% if community %} {{ community.title }}'s avatar {% else %} {{ id }}'s avatar {% endif %} {%- endmacro %} {% macro banner(username) -%} {%- endmacro %} {% macro community_banner(id, community=false) -%} {% if community %} {% else %} {% endif %} {%- endmacro %} {% macro community_listing_card(community) -%} {{ components::community_avatar(id=community.id, community=community, size="48px") }}

{{ community.context.display_name }}

{{ community.member_count }} members
{%- endmacro %} {% macro username(user) -%}
{% if user.settings.display_name %} {{ user.settings.display_name }} {% else %} {{ user.username }} {% endif %}
{%- endmacro %} {% macro likes(id, asset_type, likes=0, dislikes=0) -%} {%- endmacro %} {% macro post(post, owner, secondary=false, community=false, show_community=true) -%} {% if community and show_community %}
{{ components::community_avatar(id=post.community, community=community) }} {{ community.title }}
{% endif %}
{% if user %}
{{ components::likes(id=post.id, asset_type="Post", likes=post.likes, dislikes=post.dislikes) }}
{% else %}
{% endif %}
{{ icon "message-circle" }} {{ post.comment_count }} {{ icon "external-link" }} {% if user %} {% endif %}
{% if community and show_community %}
{% endif %} {%- endmacro %} {% macro notification(notification) -%}
{% if not notification.read %} {% endif %} {{ notification.title|markdown|safe }}
{{ notification.content|markdown|safe }}
{% if notification.read %} {% else %} {% endif %}
{%- endmacro %} {% macro user_card(user) -%} {{ components::avatar(username=user.username, size="48px") }}

{{ components::username(user=user) }}

{{ user.username }}
{%- endmacro %} {% macro pagination(page=0, items=0) -%}
{% if page > 0 %} {{ icon "arrow-left" }} {{ text "general:link.previous" }} {% else %}
{% endif %} {% if items != 0 %} {{ text "general:link.next" }} {{ icon "arrow-right"}} {% endif %}
{%- endmacro %} {% macro online_indicator(user) -%} {% if not user.settings.private_last_online or is_helper %}
{% endif %} {%- endmacro %}