{%- import 'util/macros.html' as macros with context -%} {% if v %} {% include "modals/award.html" %} {% endif %} {% if v and v.admin_level > 1 %} {% endif %} {% include "popover.html" %} {% for p in listing if user_can_see(v, p) %} {% set ups=p.upvotes %} {% set downs=p.downvotes %} {% set score=ups-downs %} {% if v %} {% set voted= p.voted %} {% else %} {% set voted=-2 %} {% endif %} {% set v_forbid_deleted = (p.deleted_utc != 0 or p.is_banned) and not (v and v.admin_level >= PERMS['POST_COMMENT_MODERATION']) and not (v and v.id == p.author_id) %} {% if p.active_flags(v) %}
Reported by:
{% endif %}
{% if v and request.path.startswith('/@') and v.admin_level < PERMS['VIEW_VOTE_BUTTONS_ON_USER_PAGE'] %}
{{score}}
{% elif v %}
{{score}}
{% else %}
{{score}}
{% endif %}
{% if not v_forbid_deleted %}
{% if not p.url %} post thumbnail {% elif p.is_image %} post thumbnail {% elif p.is_video or p.is_audio %} post thumbnail {% if p.is_video %} {% endif %} {% elif p.is_youtube %} post thumbnail {% else %} post thumbnail {% endif %}
{% endif %}
  • {{p.comment_count}} {% if v and v.admin_level >= PERMS['ADMIN_HOME_VISIBLE'] %} {% endif %}
  • {% if p.realbody(v, listing=True) %} {% endif %} {% if v %}
  • {% endif %} {% if v and request.path.startswith('/@') and v.admin_level < PERMS['VIEW_VOTE_BUTTONS_ON_USER_PAGE'] %}
  • {{score}}
  • {% elif v %}
  • {{score}}
  • {% else %}
  • {{score}}
  • {% endif %}
{% if v %} {% endif %} {% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} {% include "post_admin_actions_mobile.html" %} {% endif %} {% if not v_forbid_deleted %} {% if p.realbody(v, listing=True) %}
{{p.realbody(v, listing=True) | safe}}
{% endif %} {% if p.is_image and not p.over_18 and ((v and v.cardview)) %}
Unable to load image
{% elif p.is_video %}

{% elif p.is_audio %}
{% elif p.is_youtube %}
{{p.embed_url | safe}}
{% endif %} {% endif %}
{% else %} {% if u %} {% if v and v.id == u.id %}
You haven't {% if "/saved/" in request.path %}saved{% elif "/subscribed/" in request.path %}subscribed to{% else %}made{% endif %} a post yet

Your {% if "/saved/" in request.path %}saved posts{% elif "/subscribed/" in request.path %}subscribed posts{% else %}posting history{% endif %} will show here.

{% if "/saved/" not in request.path and "/subscribed/" not in request.path %}Create a post{% endif %}
{% else %}
@{{u.username}} hasn't made a post yet

Their posting history will show here.

{% endif %} {% elif request.path != '/notifications/posts' %}
{{macros.ghost_box(error if request.path.startswith('/search') else '', '', 1)}}
{% endif %} {% endfor %} {% if v %} {% include "modals/delete_post.html" %} {% include "modals/report_post.html" %} {% if v.admin_level >= PERMS['USER_BAN'] %} {% include "modals/ban.html" %} {% endif %} {% endif %} {% if v and v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} {% endif %}