{# TODO: show_replies_from #} {% import "macros.jinja" as macros %} {% macro sprite(name, size, class) %} {% endmacro %} {% set show_buttons = (current_user or static) and not hide_buttons %} {% set is_unavailable = molt is none or molt.author.banned or molt.author.deleted %} {% if not is_in_quote %} {% if molt.is_remolt %} {% set is_remolt = molt.is_remolt %} {% set remolt_shell = molt %} {% set molt = get_fast_molt(molt.original_molt_id, current_user) %} {% endif %} {% if molt.is_reply %} {% set original_molt = get_fast_molt(molt.original_molt_id, current_user) %} {% endif %} {% if molt.is_quote %} {% set quoted_molt = get_fast_molt(molt.original_molt_id, current_user) %} {% endif %} {% endif %} {% if molt and not (molt.is_reply and original_molt is none) %}
{% if is_unavailable or molt.deleted %}

{% if is_unavailable %} This Molt is no longer available. {% else %} This Molt has been deleted. {% endif %}

{% else %}
{% if is_parent %}
{% endif %}
{% if is_pin %}

{{ sprite("pin-f", size=12, class="mini-molt-action-icon remolt-icon") }} Pinned Molt

{% endif %} {% if not is_in_quote and (is_remolt or (molt.is_reply and not thread))%} {% if is_remolt %} {{ sprite("repeat", size=12, class="mini-molt-action-icon remolt-icon") }} {{remolt_shell.author.display_name}} Remolted {% elif molt.is_reply and not thread %} {{ sprite("message", size=12, class="mini-molt-action-icon remolt-icon") }} replying to {% if original_molt.author.id == current_user.id %} you {% else %} {{original_molt.author.display_name}} {% endif %} {% endif %} {% endif %}
{% if is_in_quote %}
{% endif %}
{{molt.author.display_name}} {% if molt.author.verified %} {{macros.verified(17)}} {% endif %} @{{molt.author.username}} ยท {{molt.timestamp | pretty_age}} {% if molt.is_thread %} {% include 'thread-badge.html' %} {% endif %} {% if molt.nsfw %} {% include 'nsfw-badge.html' %} {% endif %}
{% if molt.content %}

{{molt.content | rich_content(nsfw=molt.nsfw, card=molt.card) | safe}} {% endif %} {% if molt.image %}

{{molt.image | alt_text}} {% if molt.nsfw %} NSFW {% endif %}
{% endif %}
{% if molt.is_quote and not is_in_quote %}
{% with molt=quoted_molt, hide_border = True, hide_buttons = True, is_in_quote=True %} {% include 'fast-molt.html' %} {% endwith %}
{% endif %} {% if show_buttons %} {% include 'fast-molt-buttons.html' %} {% endif %}
{% if not static %} {% endif %} {% endif %}
{% endif %}