{% block content %}
{% embed 'breadcrumb.twig' with {breadcrumbs: breadcrumbs} %}
{% block extra %}
<div class="pull-right">
<div class="btn-group">
{% if app.show_http_remote or app.show_ssh_remote %}
<a href="#" class="btn btn-primary btn-xs" title="Show remotes to clone this repository."
data-toggle="modal" data-target="#p3x-gitlist-modal-clone">Clone</a>
{% endif %}
<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>
{% 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"