git.fiddlerwoaroof.com
twig/search.twig
ffc9d555
 {% extends 'layout_page.twig' %}
 
 {% set page = 'files' %}
 
6933b58c
 {% block title %}
   GitList
 {% endblock %}
ffc9d555
 
 {% block content %}
6933b58c
   {% embed 'breadcrumb.twig' with {breadcrumbs: breadcrumbs} %}
   {% block extra %}
   {% endblock %}
   {% endembed %}
   <div class="pull-right">
     <div class="btn-group download-buttons">
       <a href="{{ path('archive', {repo: repo, branch: branch, format: 'zip'}) }}" class="btn btn-mini" title="Download '{{ branch }}' as a ZIP archive">ZIP</a>
       <a href="{{ path('archive', {repo: repo, branch: branch, format: 'tar'}) }}" class="btn btn-mini" title="Download '{{ branch }}' as a TAR archive">TAR</a>
     </div>
     <a href="{{ path('rss', {repo: repo, branch: branch}) }}" class="rss-icon"><i class="rss"></i></a>
   </div>
ffc9d555
 
6933b58c
   {% if results %}
ffc9d555
     <table class="tree">
6933b58c
       <thead>
         <tr>
           <th width="20%">name</th>
           <th width="80%">match</th>
         </tr>
       </thead>
       <tbody>
         {% for result in results %}
           <tr>
             <td><i class="icon-file icon-spaced"></i> <a href="{{ path('blob', {repo: repo, branch: branch, file: result.file, commitishPath: branch ~ '/' ~ result.file}) }}#L{{ result.line }}">{{ result.file }}</a></td>
             <td>{{ result.match }}</td>
           </tr>
         {% endfor %}
       </tbody>
ffc9d555
     </table>
6933b58c
   {% else %}
ffc9d555
     <p>No results found.</p>
6933b58c
   {% endif %}
ffc9d555
 {% endblock %}