{% set page_title = "Search" %} {% extends theme("layout.html") %} {% block content %} {% from theme('macros.html') import render_pagination, group_field, topic_pages %} {% if result['post'] %}

Posts

{% if result['post'].all() %} {% for post in result['post'].all() %} {% endfor %} {% else %} {% endif %}
{% if post.user_id %} {% if post.user.avatar %} {% endif %} {% else %} {% endif %}
Avatar {{ post.user.username }} {%- if post.user|is_online %} Online {%- else %} Offline {%- endif %}
{{ post.user.primary_group.name }}
Posts: {{ post.user.post_count }}
Registered since: {{ post.user.date_joined|format_date('%b %d %Y') }}
{{ post.username }}
Guest
{% autoescape false %} {{ post.content|markup }} {% endautoescape %}
No posts found matching your search criteria
{% endif %} {% if result['user'] %}

Users

{% if result['user'].all() %} {% for user in result['user'].all() %} {% endfor %} {% else %} {% endif %}
# Username Posts Date registered Group
{{ user.id }} {{ user.username }} {{ user.post_count }} {{ user.date_joined|format_date('%b %d %Y') }} {{ user.primary_group.name }}
No topics found matching your search criteria
{% endif %} {% if result['topic'] %}

Topics

{% if result['topic'].all() %} {% for topic in result['topic'].all() %} {% endfor %} {% else %} {% endif %}
Topic Posts Views Last Post
{% if topic.locked %} {% else %} {% endif %}
{{ topic.title }} {{ topic_pages(topic, config["POSTS_PER_PAGE"]) }}
{% if topic.user_id %} by {{ topic.user.username }} {% else %} by {{ topic.username }} {% endif %}
{{ topic.post_count }} {{ topic.views }} {{ topic.last_post.date_created|time_since }}
{% if topic.last_post.user_id %} by {{ topic.last_post.user.username }} {% else %} {{ topic.last_post.username }} {% endif %}
No topics found matching your search criteria
{% endif %} {% if result['forum'] %}

Forums

{% if result['forum'].all() %} {% for forum in result['forum'].all() %} {% else %} {% if forum[0].locked %} {% elif forum[0]|forum_is_unread(forum[1], current_user) %} {% else %} {% endif %} {% endfor %} {% else %} {% endif %}
Forum Topics Posts Last Post
{% if forum[0].external %} {{ forum[0].title }}
{% autoescape false %} {{ forum[0].description|markup }} {% endautoescape %}
- - - {{ forum[0].title }}
{% autoescape false %} {{ forum[0].description|markup }} {% endautoescape %} {% if forum[0].show_moderators %}
Moderators: {% for moderator in forum[0].moderators %} {{ moderator.username }}{% if not loop.last %}, {% endif %} {% endfor %}
{% endif %}
{{ forum[0].topic_count }} {{ forum[0].post_count }} {% if forum[0].last_post_id %} {{ forum[0].last_post.topic.title|crop_title }}
{{ forum[0].last_post.date_created|time_since }}
{% if forum[0].last_post.user_id %} by {{ forum[0].last_post.user.username }} {% else %} {{ forum[0].last_post.username }} {% endif %} {% else %} No posts {% endif %} {% endif %}
No forums found matching your search criteria
{% endif %} {% endblock %}