{% 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 !is_filtered %}
{% call utils::sort(["/user/", user.name.as_str()].concat(), ["overview", "comments", "submitted"], listing) %}
{% if sort.0 == "top" || sort.0 == "controversial" %}{% endif %}
{% if all_posts_filtered %}
(All content on this page has been filtered)
{% else %}
{% for post in posts %} {% if post.flags.nsfw && prefs.show_nsfw != "on" %} {% else if !post.title.is_empty() %} {% call utils::post_in_list(post) %} {% else %}

{{ post.score.0 }}

COMMENT {{ post.rel_time }}

{{ post.body|safe }}

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