{% extends "base.html" %} {% import "repo_tabs.html" as m %} {% block title %}Search {{ q }} · {{ repo.owner }}/{{ repo.name }}{% endblock %} {% block bodyattrs %} data-repo="{{ repo.url }}"{% endblock %} {% block tabs %}{% call m::tabs(repo, "code") %}{% endblock %} {% block mainclass %} class="wide"{% endblock %} {% block content %}

Search code on ◆ {{ r }}{% if !q.is_empty() %} · {{ results.hits.len() }} matches in {{ results.files|plural("file", "files") }}{% if results.truncated %} (stopped early; narrow the search){% endif %}{% endif %}

{% if let Some(e) = error %}

{{ e }}

{% endif %} {% if !q.is_empty() && results.hits.is_empty() && error.is_none() %}

Nothing matches.

{% endif %}
{% for h in results.hits %} {% if h.line == 0 %}

{{ h.path }} path matches

{% else %}

{{ h.path }}:{{ h.line }} {{ h.text }}

{% endif %} {% endfor %}
{% endblock %}