| 1 | {% extends "base.html" %} |
| 2 | {% block content %} |
| 3 | {% include "repo_nav.html" %} |
| 4 | {% include "crumbs.html" %} |
| 5 | <form class="log-tools" method="get" action="{{ action }}" role="search"> |
| 6 | <label class="field"> |
| 7 | <span class="label">Path</span> |
| 8 | <input type="search" name="q" value="{{ q }}" autocomplete="off" spellcheck="false" placeholder="File name or path" autofocus> |
| 9 | </label> |
| 10 | </form> |
| 11 | {%- if !q.is_empty() %} |
| 12 | <p class="label dim find-count">{{ matched }} of {{ total }} files{% if matched > hits.len() %} · showing {{ hits.len() }}{% endif %}</p> |
| 13 | {%- if hits.is_empty() %} |
| 14 | <p class="status log-note">[No matches]</p> |
| 15 | {%- else %} |
| 16 | <ul class="tree find-list"> |
| 17 | {%- for hit in hits %} |
| 18 | <li class="tree-row"><a class="tree-name mono" href="{{ hit.url }}"><span><span class="find-dir">{{ hit.dir }}</span>{{ hit.name }}</span></a></li> |
| 19 | {%- endfor %} |
| 20 | </ul> |
| 21 | {%- endif %} |
| 22 | {%- else %} |
| 23 | <p class="label dim find-count">{{ total }} files</p> |
| 24 | {%- endif %} |
| 25 | {%- if truncated %} |
| 26 | <p class="status log-note">[Large tree: only the first {{ total }} paths are searched]</p> |
| 27 | {%- endif %} |
| 28 | {% endblock %} |