{% extends "base.html" %} {% load i18n %} {% load search_filters %} {% load pagination_tags %} {% load markup %} {% block title %}{{ block.super }} | {% trans "Search" %}{% endblock %} {% block breadcrumb %}{{ block.super }} » {% if not query %}{% trans "Search" %}{% else %}{% trans "Search" %} » {% trans "Results" %}{% endif %}{% endblock %} {% block body_class %}search project_list{% endblock %} {% block content_title %}

{% if not query %}{% trans "Search projects" %}{% else %}{% trans "Search results" %}{% endif %}

{% endblock %} {% block content %} {% with "content_header_prim" as extra_searchform_classes %} {% include "search_form.html" %} {% endwith %} {% if query %} {% if spelling_suggestion %}

{% trans 'Did you mean:' %} {{ spelling_suggestion }}

{% endif %} {% if results %}

{% with results|length as result_count %}{% blocktrans %}Search Results ({{ result_count }}){% endblocktrans %}

{% endwith %} {% autopaginate results 10 %}
{% for sr in results %} {% highlight terms as name %} {# set `name` object #} {{ sr.name }} {% endhighlight %} {% searchexcerpt terms 6 as description %} {# set `description` object #} {{ sr.description|striptags }} {% endsearchexcerpt %} {% searchexcerpt terms 10 as searchtext %} {# set `searchtext` object #} {{ sr.text|markdown|striptags }} {% endsearchexcerpt %}

{{ name.highlighted }}

{{ description.excerpt|highlight:terms }}

{{ searchtext.excerpt|highlight:terms }}

{% endfor %}
{% else %}

{% blocktrans with query|escape as q %}No projects were found for "{{ q }}". You may want to change your query a bit.{% endblocktrans %}

{% endif %} {% endif %} {% endblock %} {% block content_footer %} {% if request.user.is_authenticated and perms.projects.add_project %} {% endif %} {% endblock %}