{% include "post/_breadcrumb_nav.html" %}

{{ post.title }} {% if post.nsfw -%}nsfw{% endif -%} {% if post.nsfl -%}nsfl{% endif -%}

{% if post.type == POST_TYPE_LINK and post.image_id and not (post.url and 'youtube.com' in post.url) -%}
{{ post.image.alt_text if post.image.alt_text else '' }}
{% elif post.type == POST_TYPE_IMAGE and post.url -%}

{{ post.url|shorten_url }}

{% endif -%}

{% if post.reports > 0 and current_user.is_authenticated and post.community.is_moderator(current_user) -%} {% endif -%}submitted by {{ render_username(post.author) }} {% if post.edited_at -%} edited

{% if post.type == POST_TYPE_IMAGE -%}
{% if post.image_id -%} {% if low_bandwidth -%} {{ post.image.alt_text if post.image.alt_text else post.title }} {% else -%} {{ post.image.alt_text if post.image.alt_text else post.title }} {% endif -%} {% else -%} {% endif -%}
{% elif post.type == POST_TYPE_LINK -%}

{{ post.url|shorten_url }} {% if post.domain.post_warning -%} {% endif -%}

{% if post.url.endswith('.mp3') -%}

{% elif post.url.endswith('.mp4') or post.url.endswith('.webm') -%}

{% elif post.url.startswith('https://streamable.com') -%}
{% elif post.url.startswith('https://www.redgifs.com/watch/') -%}
{% endif -%} {% if 'youtube.com' in post.url -%}

{{ _('Watch on piped.video') }}

{% endif -%} {% elif post.type == POST_TYPE_VIDEO -%}

{{ post.url|shorten_url }}

{% if post.url.endswith('.mp4') or post.url.endswith('.webm') -%}

{% elif post.url.startswith('https://streamable.com') -%}
{% elif post.url.startswith('https://www.redgifs.com/watch/') -%}
{% endif -%} {% if 'youtube.com' in post.url -%}

{{ _('Watch on piped.video') }}

{% endif -%} {% if 'videos/watch' in post.url -%}
{% endif -%} {% elif post.type == POST_TYPE_IMAGE -%}
{{ post.image.alt_text if post.image.alt_text else post.title }}
{% else -%} {% if post.image_id and not (post.url and 'youtube.com' in post.url) -%} {{ post.image.alt_text if post.image.alt_text else post.title }} {% endif -%} {% endif -%}
{{ post.body_html|community_links|safe if post.body_html else '' }} {% if archive_link -%}

{{ _('Archive.ph link') }}

{% endif -%} {% if post.licence_id -%}

Licence: {{ post.licence.name }}

{% endif -%}
{% if post.type == POST_TYPE_POLL -%}
{% if poll_results and poll_total_votes == 0 -%}

{{ _('The poll has finished, yet no votes were cast.') }}

{% elif poll_results and poll_total_votes -%}
    {% for choice in poll_choices -%}
  • {{ choice.choice_text }}

    {{ choice.percentage(poll_total_votes) }}%
  • {% endfor -%}

{{ _('Total votes: %(total_votes)d.', total_votes=poll_total_votes) }}

{{ _('Poll closes') }} {{ arrow.get(poll_data.end_poll).humanize(locale=locale) }}.

{% elif poll_form -%} {% if current_user.is_authenticated -%}
{% else -%} {% endif -%}
    {% for choice in poll_choices -%} {% if poll_data.mode == 'single' -%}
  • {% else -%}
  • {% endif -%} {% endfor -%}
{% endif -%}
{% endif -%}
{% if post.tags.count() > 0 -%} {% endif -%}
{% include "post/_post_voting_buttons.html" -%}
{% if post.cross_posts -%}
{% endif -%}
{% if current_user.is_authenticated and current_user.verified -%} {% include 'post/_post_notification_toggle.html' -%} {% endif -%}