<%inherit file="/template.html" />
<%def name="title()">${_("Search") if not c.query else "'%s'" % c.query | n}</%def>

<%def name="breadcrumbs()">
    ${h.instance.breadcrumbs(c.instance)|n} ${h.url.link(_("Search"), h.base_url('/search'))|n}
</%def>

<%block name="headline">
<h2>
    %if c.instance:
        ${_("Search in %s") % c.instance.label}
    %else:
        ${_("Search")}
    %endif
</h2>
<p>${_("Search includes issues and proposals.")}</p>
</%block>


<%block name="main_content">
    <div class="list_filter">
        <form action="?" class="list_form" method="GET" autocomplete="off">
            <input id="serp_q" name="serp_q" class="live_search search_text"
                   type="text" autofocus="autofocus" />
            <input type="submit" value="${_('Search')}" class="search_button" />
        </form>
    </div>
    <div id="serp_table" class="table">
        %if c.query:
            ${c.entities_pager.here()|n}
        %else:
            <div class="infobox">
                ${_("You did not provide a search query.")}
            </div>
        %endif
    </div>
</%block>
