{% extends "assetcloud/pages/search_base.html" %} {% load humanize %} {% block title %}Search{% endblock %} {% block content %} {% with page.object_list as results %} {{ block.super }} {% endwith %} {% endblock %} {% block sidebar %} {% block filters %}

Filters

{% include "assetcloud/snippets/tagfilter.html" %} {% include "assetcloud/snippets/datefilter.html" %}
{% endblock %} {% endblock %} {% block has-assets-pre-results %} {% block applied_filters %} {% if form.have_tag_filter %}
× Tagged with: {% for tag in form.tag_list %} {{ tag }}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} {% if form.have_date_filter %}
× Uploaded {% if form.have_last_upload_filter %} in last upload {% else %} {% ifequal form.cleaned_data.from_date form.cleaned_data.until_date %} on {{ form.cleaned_data.from_date|naturalday }}. {% else %} {% if not form.cleaned_data.until_date %} since {{ form.cleaned_data.from_date|naturalday }}. {% else %} between {{ form.cleaned_data.from_date|naturalday }} and {{ form.cleaned_data.until_date|naturalday }} {% endif %} {% endifequal %} {% endif %}
{% endif %} {% endblock applied_filters %} {% endblock %}