{% extends "base.html" %} {% import "utils.html" as utils %} {% block title %}Libreddit: search results - {{ params.q }}{% endblock %} {% block content %}
{% if sub != "" %}
{% endif %} {% if params.sort != "new" %}{% endif %}
{% if subreddits.len() > 0 %}
{% for subreddit in subreddits %}

{{ subreddit.name }} {{ subreddit.subscribers }} Members

{{ subreddit.description }}

{% endfor %}
{% endif %} {% for post in posts %} {% if post.flags.nsfw && prefs.hide_nsfw == "on" %} {% else if post.title != "Comment" %}

{{ post.score }}

{% if post.flags.nsfw %}
NSFW
{% endif %}

r/{{ post.community }} {% if post.author.flair.flair_parts.len() > 0 %} {% call utils::render_flair(post.author.flair.flair_parts) %} {% endif %} {{ post.rel_time }}

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

{% if prefs.layout == "card" && post.post_type == "image" %} {% else if post.post_type != "self" %} {% if post.thumbnail == "" %} {% else %} {% endif %} {% if post.post_type == "link" %}{{ post.domain }}{% else %}{{ post.post_type }}{% endif %} {% endif %}
{% else %}

{{ post.score }}

COMMENT {{ post.rel_time }}

{{ post.body }}

{% endif %} {% endfor %}
{% endblock %}