{% extends "core/base.html" %} {% load i18n %} {% load hooks %} {% hook 'filter_search' %} {% block title %}{% trans "Search" %}{% endblock %} {% block body %} {% if search_term %}

{% trans 'Searching for' %}: {{ search_term }}

{% elif keyword %}

{% trans 'Keyword' %}: {{ keyword }}

{% else %}

{% trans 'Search' %}

{% endif %}

{% trans "Articles" %}

{% for article in articles %} {% include "elements/article_listing.html" with article=article level="deep" %} {% empty %}

{% trans "No articles to display." %}

{% endfor %}

{% trans "Searching" %}

{% csrf_token %} {% if not keyword %} {% endif %}
{% if not keyword %} {{ form.article_search.errors }} {{ form.article_search }} {% else %} {% trans 'You are currently browsing by keyword.' %}

{% trans 'Search for an article.' %}

{% endif %}
{{ form.sort.errors }} {{ form.sort }}
{% endblock %}