{% extends "base.html" %} {% from "macros/box.html" import m_box_menu %} {% block main %} {# Search bar on top #}
{%- if not results %}

{{ _("Your query didn't match any results.") }}

{%- else %}

{{ _('%(count)d items found', count=results_count) }}

{%- endif -%}
{%- if by_object_type %} {% call m_box_menu(title=_('Filter by type'), omit_body=True) %}
{%- for name, count, link, is_active in by_object_type %} {{ name }} {%- if count %} {{ count|roughsize }} {%- endif %} {%- endfor %}
{% endcall %} {%- endif %}
{% if results %}
{%- for hit in results %}
{%- if (filtered_by_type|length) != 1 %} {{ friendly_fqcn(hit['object_type']) }}   {%- endif %} {{ hit.highlights('name')|safe or hit['name']}} {%- if 'description' in hit %}

{{ hit.highlights('description')|safe }}

{%- endif %} {%- if 'creator' in hit %} {%- set author_type, author_id = hit['creator'].split(':') %} {%- set author_href = url_for('social.' + author_type, **{(author_type + '_id'): author_id}) %}

{{ _('by') }} {{hit['creator_name'] }} – {{ _('Last modification: %(date)s', date=_('%(date)s at %(time)s', date=hit['updated_at']|dateformat('long'), time=hit['updated_at']|timeformat('short'))) }}

{%- endif %}
{%- endfor %}
{%- if pagecount > 1 %} {%- endif %} {%- endif %}
{% endblock %}