{{ obj.summary | clean | replace_custom_emojis(obj) | safe }}
{% endif %} {% if obj | has_type('Video') %}-
{% set total_votes = obj | get_total_answers_count(meta) %}
{% for oneOf in obj.oneOf %}
{% set pct = 0 %}
{% if total_votes > 0 %}
{% set cnt = oneOf.name | get_answer_count(obj, meta) %}
{% set pct = cnt * 100.0 / total_votes %}
{% endif %}
- {% if session.logged_in and not meta.poll_answers_sent and not (real_end_time | gtnow) and not (obj.id | is_from_outbox) %} {% endif %} {{ '%0.0f'| format(pct) }}% {{ oneOf.name }} {% if oneOf.name | poll_answer_key in meta.poll_answers_sent %}(your vote){% endif %} {% endfor %} {% if obj.anyOf %} {% for anyOf in obj.anyOf %} {% set pct = 0 %} {% if total_votes > 0 %} {% set cnt = anyOf.name | get_answer_count(obj, meta) %} {% set pct = cnt * 100.0 / total_votes %} {% endif %}
- {% set already_voted = anyOf.name | poll_answer_key in meta.poll_answers_sent %} {% if session.logged_in and not already_voted and not (real_end_time | gtnow) and not (obj.id | is_from_outbox) %} {% elif session.logged_in and already_voted and not (real_end_time | gtnow) %} {% endif %} {{ '%0.0f'| format(pct) }}% {{ anyOf.name }} {% if anyOf.name | poll_answer_key in meta.poll_answers_sent %}(your vote){% endif %} {% endfor %} {% endif %}
{% if real_end_time | gtnow %} Ended {{ real_end_time | format_timeago }} with {{ total_votes }} vote{% if total_votes | gtone %}s{% endif %}. {% else %} Ends {{ real_end_time | format_timeago }} ({{ total_votes }} vote{% if total_votes | gtone %}s{% endif %} as of now). {% endif %}
{% else %} {{ obj.content | clean | replace_custom_emojis(obj) | code_highlight | safe }} {% endif %}Attachments
-
{% endif %}
{% for a in obj.attachment %}
{% if (a.mediaType and a.mediaType.startswith("image/")) or (a.type and a.type == 'Image') %}
{% elif (a.mediaType and a.mediaType.startswith("video/")) %}
{% elif (a.mediaType and a.mediaType.startswith("audio/")) %}
{% else %}
- {% if a.filename %}{{ a.filename }}{% else %}{{ a.url }}{% endif %} {% endif %} {% endfor %} {% if obj.attachment | not_only_imgs %}
{{ og.description | truncate(80) }}
{{ og.site_name }}