{% extends "base.html" %}
{% block title %}{{ nick }} : search{% endblock %}

{% block heading %}
<div id="breadcrumbs">
<span class="breadcrumb"><a href="{{ url_prefix }}/">{{ nick }}</a></span>
<span>&#187; Search</span>
</div>
{% endblock %}

{% block content %}
<form method="get" action="{{ url_prefix }}/search">
  <input type="text" name="q" value="{{ query }}" placeholder="query…">
  <button type="submit">Search</button>
</form>
{% if !available %}
<p class="unavailable" style="background: #fff4d0; border: 1px solid #c90; padding: 0.5em 0.8em; border-radius: 3px;">
Search is not available in this loggerhead build. The <code>breezy.plugins.search</code> plugin must be installed and the branch indexed.
</p>
{% else %}
{% if results.is_empty() %}
<p>No results.</p>
{% else %}
<ul>
  {% for r in results %}
    <li><a href="{{ url_prefix }}/revision/{{ r.revno }}"><code>{{ r.revno }}</code></a> — {{ r.short_message }}</li>
  {% endfor %}
</ul>
{% endif %}
{% endif %}
{% endblock %}
