- gitlist.git
- twig
- search.twig
This file ( 2kB ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
{% extends 'layout_page.twig' %}
{% set page = 'files' %}
{% block title %}P3X GitList{% endblock %}
{% block content %}
{% embed 'breadcrumb.twig' with {breadcrumbs: breadcrumbs} %}
{% block extra %}
<div class="pull-right">
<div class="btn-group">
<a href="{{ path('archive', {repo: repo, branch: branch, format: 'zip'}) }}" class="btn btn-primary btn-xs" title="Download '{{ branch }}' as a ZIP archive">ZIP</a>
<a href="{{ path('archive', {repo: repo, branch: branch, format: 'tar'}) }}" class="btn btn-primary btn-xs" title="Download '{{ branch }}' as a TAR archive">TAR</a>
<a href="{{ path('rss', {repo: repo, branch: branch}) }}" class="btn btn-primary btn-xs"><span class="fa fa-rss"></span></a>
</div>
</div>
{% endblock %}
{% endembed %}
{% if results %}
<table class="table" style="table-layout: fixed;">
<thead>
<tr>
<th width="30%">Name</th>
<th width="70%">Match</th>
</tr>
</thead>
<tbody>
{% for result in results %}
<tr>
<td width="30%" nowrap>
<div style="overflow-y: auto; ">
<span class="far fa-file-alt"></span> <a href="{{ path('blob', {repo: repo, branch: branch, file: result.file, commitishPath: branch ~ '/' ~ result.file}) }}#L{{ result.line }}">{{ result.file }}</a></td>
</div>
<td width="70%">
<pre style="overflow-y: auto; ">
{{ result.match }}
</pre>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No results found.</p>
{% endif %}
{% endblock %}