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

{% trans %}Posts{% endtrans %}

{% for post in result['post'].all() %} {% else %} {% endfor %}
{% 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 }}
{% trans %}Posts{% endtrans %}: {{ post.user.post_count }}
{% trans %}Registered since{% endtrans %}: {{ post.user.date_joined|format_date('%b %d %Y') }}
{{ post.username }}
{% trans %}Guest{% endtrans %}
{% autoescape false %} {{ post.content|markup }} {% endautoescape %}
{% trans %}No posts found matching your search criteria.{% endtrans %}
{% endif %} {% if result['user'] %}

{% trans %}Users{% endtrans %}

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

{% trans %}Topics{% endtrans %}

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

{% trans %}Forums{% endtrans %}

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