{% extends 'cmdbase/base.html' %} {% load i18n static %} {% block content %} {% if should_authenticate and not request.user.is_authenticated %}

{{ _("Welcome") }}

{{ _("Log in") }}
{% endif %} {# ------------------------------------------------------------------------- #} {% if search %}

{{ _("Search results") }}

{{ _("Back home") }}

{{ _("Search") }}{{ _(":") }} {{ search }}

{% if search_results %} {% else %}

No result.

{% endif %} {# ------------------------------------------------------------------------- #} {% elif categories or recents %}
{% if categories %}

{{ _("Categories") }}

{% if request.user.is_staff %} {{ _("Admin") }} {% endif %}

{% for category in categories %} {% endfor %}
Name Items
{{ category.name }} {{ category.items_count }}
{% endif %} {% if recents %}

{{ _("Recent") }}

Clear

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