{% if post.reports > 0 and current_user.is_authenticated and post.community.is_moderator(current_user) %} {% endif %}submitted {{ moment(post.posted_at).fromNow() }} by {{ render_username(post.author) }} {% if post.edited_at %} edited {{ moment(post.edited_at).fromNow() }}{% endif %}
{% if post.reports > 0 and current_user.is_authenticated and post.community.is_moderator(current_user) %} {% endif %}submitted {{ moment(post.posted_at).fromNow() }} by {{ render_username(post.author) }} {% if post.edited_at %} edited {{ moment(post.edited_at).fromNow() }}{% endif %}
{% if post.type == POST_TYPE_LINK %} {% 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 %} {% elif post.type == POST_TYPE_IMAGE %} {% else %} {% if post.image_id and not (post.url and 'youtube.com' in post.url) %} {% endif %} {% 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') }} {{ moment(poll_data.end_poll).fromNow(refresh=True) }}.
{% elif poll_form %} {% if current_user.is_authenticated %} {% endif %}