{% import "macros.html" as macros %}
{% if questions_count > 0 %}
        <h1 id="questionCount" class="search-result-summary">
            {% trans cnt=questions_count, q_num=questions_count|intcomma %}{{q_num}} question{% pluralize %}{{q_num}} questions{% endtrans %}
        {% if author_name %}
            {% trans %}with {{author_name}}'s contributions{% endtrans %}
        {% endif %}
        </h1>
        <div class="clearfix"></div>
        <div id="listSearchTags" {% if not search_tags %}style="display: none;"{% endif %}>
            <span class="left">{% trans %}Tagged{% endtrans %}</span>
            {{ macros.tag_list_widget(
                    search_tags,
                    id = 'searchTags',
                    deletable = True,
                    make_links = False,
                    search_state = search_state
                )
            }}
        </div>
        {#% if author_name or search_tags or query %}
            <p class="search-tips"><b>{% trans %}Search tips:{% endtrans %}</b> 
            {% if reset_method_count > 1 %}
                {% if author_name %}
                    <a href="{{ search_state.remove_author().full_url() }}">{% trans %}reset author{% endtrans %}</a>
                {% endif %}
                {% if search_tags %}{% if author_name and query %}, {% elif author_name %}{% trans %} or {% endtrans %}{% endif %}
                    <a href="{{ search_state.remove_tags().full_url() }}">{% trans %}reset tags{% endtrans %}</a>
                {% endif %}
                {% if query %}{% trans %} or {% endtrans %}
                    <a href="{% url questions %}">{% trans %}start over{% endtrans %}</a>
                {% endif %}
            {% else %}
                <a href="{% url questions %}">{% trans %}start over{% endtrans %}</a>
            {% endif %}
            {% trans %} - to expand, or dig in by adding more tags and revising the query.{% endtrans %}
            </p>
        {% else %}
            <p class="search-tips"><b>{% trans %}Search tip:{% endtrans %}</b> {% trans %}add tags and a query to focus your search{% endtrans %}</p>
        {% endif %#}
{% endif %}
