{% if obj.summary %}
{% endif %}
{{ obj.summary | clean }}
{% endif %} {% if obj | has_type('Video') %}
{% if obj | has_type('Article') %}
{{ obj.name }} {{ obj | url_or_id | get_url }}
{% elif obj | has_type('Question') %}
{% if index and limit != 0 and obj.content|length > limit %}
{{ obj.content | truncate(limit) | clean | safe }}
Read more.
{% else %}
{{ obj.content | clean | safe }}
{% endif %}
{% if obj.id | is_from_outbox or (meta.question_replies and (obj.closed or meta.voted_for)) %}
{% if obj.attachment and obj | has_type('Note') %}
-
{% set total_votes = meta.question_replies %}
{% for oneOf in obj.oneOf %}
{% set pct = 0 %}
{% if total_votes > 0 %}
{% set cnt = oneOf.name | get_answer_count(meta) %}
{% set pct = cnt * 100.0 / total_votes %}
{% endif %}
- {{ '%0.0f'| format(pct) }}% {{ oneOf.name }} {% endfor %}
{% if obj.closed or obj.endTime | gtnow %} Ended {{ obj.endTime | format_timeago }} with {{ total_votes }} vote{% if total_votes | gtone %}s{% endif %}. {% else %} Ends {{ obj.endTime | format_timeago }} ({{ total_votes }} vote{% if total_votes | gtone %}s{% endif %} as of now). {% endif %}
{% else %}-
{% for oneOf in obj.oneOf %}
- {% if not meta.voted_for and not obj.endTime | gtnow %} {% else %} ??? {% endif %} {{ oneOf.name }} {% if oneOf.name == meta.voted_for %}(your vote){% endif %} {% endfor %}
{% if obj.endTime | gtnow %}This question ended {{ obj.endTime | format_timeago }}.
{% else %}This question ends {{ obj.endTime | format_timeago }}{% endif %}
{% if obj.attachment | not_only_imgs %}
{% endif %}
{% if meta and meta.og_metadata and obj | has_type('Note') %}
{% for og in meta.og_metadata %}
{% if og.url %}
Attachments
-
{% endif %}
{% for a in obj.attachment %}
{% if (a.mediaType and a.mediaType.startswith("image/")) or (a.type and a.type == 'Image') %}
- {% if a.filename %}{{ a.filename }}{% else %}{{ a.url }}{% endif %} {% endif %} {% endfor %} {% if obj.attachment | not_only_imgs %}
{{ og.title }}
{% endif %}
{% endfor %}
{% endif %}
{% if perma %}{{ obj.published | format_time }}{% endif %}
{% if likes or shares %}
{{ og.description | truncate(80) }}
{{ og.site_name }}
{% if likes %}
{% endif %}
{% if shares %}
{% endif %}
{% endif %}