- gitlist.git
- twig
- breadcrumb.twig
This file ( 4kB ) 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.
<ol class="breadcrumb" style="margin-bottom: 0;">
<li><a href="{{ path('tree', {repo: repo, commitishPath: branch}) }}">{{ repo }}</a></li>
{% for breadcrumb in breadcrumbs %}
<li{% if loop.last %} class="active"{% endif %}>{% if not loop.last %}<a href="{{ path('tree', {repo: repo, commitishPath: branch ~ '/' ~ breadcrumb.path}) }}">{{ breadcrumb.dir }}</a>{% endif %}{% if loop.last %}{{ breadcrumb.dir }}{% endif %}</li>
{% endfor %}
</ol>
<div class="p3x-gitlist-breadcrumb-divider"></div>
<div class="pull-right p3x-gitlist-button">
<div>
<a href="{{ path('rss', {repo: repo, branch: branch}) }}" class="btn btn-default btn-sm">
<i class="fa fa-rss"></i>
RSS
</a>
<a href="{{ path('archive', {repo: repo, branch: branch, format: 'zip'}) }}" class="btn btn-default btn-sm" title="Download '{{ branch }}' as a ZIP archive">
<i class="fas fa-file-archive"></i> ZIP
</a>
<a href="{{ path('archive', {repo: repo, branch: branch, format: 'tar'}) }}"
class="btn btn-default btn-sm" title="Download '{{ branch }}' as a TAR archive">
<i class="far fa-file-archive"></i> TAR
</a>
{% if app.show_http_remote or app.show_ssh_remote %}
<a href="#" class="btn btn-default btn-sm" title="Show remotes to clone this repository." data-toggle="modal" data-target="#p3x-gitlist-modal-clone">
<i class="far fa-clone"></i> Clone
</a>
{% endif %}
{% block right %}{% endblock %}
</div>
</div>
{% block left %}{% endblock %}
{% if app.show_http_remote or app.show_ssh_remote %}
<!-- Modal -->
<div id="p3x-gitlist-modal-clone" class="modal fade" role="dialog" tabindex="-1">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-body">
<div style="text-align: center">
<div class="btn-group">
{% if app.show_ssh_remote %}
<button type="button"
class="btn btn-primary{{ app.show_ssh_remote and app.show_http_remote ? ' active' }}"
id="clone-button-ssh">SSH
</button>
{% endif %}
{% if app.show_http_remote %}
<button type="button" class="btn btn-primary" id="clone-button-http">HTTPS</button>
{% endif %}
</div>
</div>
<br/>
{% if app.show_ssh_remote %}
<input readonly
type="text" class="form-control{{ app.show_ssh_remote ? ' visible' }}"
id="clone-input-ssh"
value="git clone {{ app.ssh_user }}@{{ global.request.host }}:{{ repo }}">
{% endif %}
{% if app.show_http_remote %}
<input type="text"
readonly class="form-control{{ app.show_ssh_remote is empty and app.show_http_remote ? ' visible' }}"
id="clone-input-http"
value="git clone http{{ app.use_https ? 's' }}://{{ app.http_user }}{{ app.http_user ? '@' }}{{ global.request.host }}/{{ app.git_clone_subdir }}{{ repo }}">
{% endif %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
{% endif %}
<div class="p3x-gitlist-breadcrumb-divider"></div>