{% extends "base.html" %} {% load crispy_forms_tags %} {% load i18n %} {% block title %}{% trans "Search" %}{% endblock %} {% block content %}

{% trans "Search" %}

{% if query %}

{% trans "Profiles" %}

    {% for result in page_obj.object_list %}
  • {% if result.content_type == "users.profile" %} {% endif %}
    {% if result.content_type == "users.profile" %} {% if result.object.name %} {{ result.object.name }} ({{ result.object.handle }}) {% else %} {{ result.object.handle }} {% endif %} {% endif %}
    {% if result.content_type == "users.profile" %} {% if request.user.is_authenticated %} {% endif %} {% endif %}
  • {% empty %}
  • {% trans "No results found." %}
  • {% endfor %}
{% if page_obj.has_previous or page_obj.has_next %}
{% if page_obj.has_previous %}« {% trans "Previous" %}{% endif %} | {% if page_obj.has_next %}{% trans "Next" %} »{% endif %}
{% endif %}

{% trans "Tags" %}

    {% for result in tags.page_obj.object_list %}
  • {% empty %}
  • {% trans "No results found." %}
  • {% endfor %}
{% if tags.page_obj.has_next %}

{% trans "There are more tags results. Please refine the query." %}

{% endif %}
{% else %} {# Show some example queries to run, maybe query syntax, something else? #} {% endif %} {% endblock %}