{% extends "base.html" %} {% import "utils.html" as utils %} {% block search %} {% call utils::search("".to_owned(), "", "") %} {% endblock %} {% block title %}{{ user.name.replace("u/", "") }} (u/{{ user.name }}) - Libreddit{% endblock %} {% block subscriptions %} {% call utils::sub_list("") %} {% endblock %} {% block body %}
{% if sort.0 == "top" %}{% endif %}
{% for post in posts %} {% if post.flags.nsfw && prefs.hide_nsfw == "on" %} {% else if post.title != "Comment" %}

r/{{ post.community }} {{ post.rel_time }}

{% if post.flair.flair_parts.len() > 0 %} {% call utils::render_flair(post.flair.flair_parts) %} {% endif %} {{ post.title }}{% if post.flags.nsfw %} NSFW{% endif %}

{% if (prefs.layout.is_empty() || prefs.layout == "card") && post.post_type == "image" %} Post image {% else if post.post_type != "self" %} {% if post.thumbnail.url.is_empty() %} Thumbnail {% else %} {% endif %} {% if post.post_type == "link" %}{{ post.domain }}{% else %}{{ post.post_type }}{% endif %} {% endif %}
{{ post.score }} Upvotes
{% else %}

{{ post.score }}

COMMENT {{ post.rel_time }}

{{ post.body }}

{% endif %} {% endfor %}
{% if ends.0 != "" %} PREV {% endif %} {% if ends.1 != "" %} NEXT {% endif %}
{% endblock %}