{% if post.reports > 0 and current_user.is_authenticated and post.community.is_moderator(current_user) -%} {% endif -%}submitted {{ arrow.get(post.posted_at).humanize(locale=locale) }} by {{ render_username(post.author) }} {% if post.edited_at -%} edited {{ arrow.get(post.edited_at).humanize(locale=locale) }}{% endif -%}
{% if post.type == POST_TYPE_IMAGE -%} {% 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 -%} {% 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 -%} {% else -%} {% if post.image_id and not (post.url and 'youtube.com' in post.url) -%} {% endif -%} {% endif -%}Licence: {{ post.licence.name }}
{% endif -%}{{ _('The poll has finished, yet no votes were cast.') }}
{% elif poll_results and poll_total_votes -%}{{ _('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 -%} {% endif -%}