{% extends "search/_base.html" %} {% from "macros/box.html" import m_box_menu %} {% block content %}
{%- if not results %}

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

{%- else %}

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

{%- for hit in results %}
{{ hit.highlights('name')|safe or hit['name']}} {%- if (filtered_by_type|length) != 1 %}   {{ friendly_fqcn(hit['object_type']) }} {%- endif %} {%- 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 %} {% block sidebar %} {%- if by_object_type %} {% call m_box_menu(title=_('Filter by types'), omit_body=True) %}
{%- for name, count, link, is_active in by_object_type %} {{ name }} {%- if count %} {{ count|roughsize }} {%- endif %} {%- endfor %}
{% endcall %} {%- endif %} {% endblock %}