RSS Git Download  Clone
Raw Blame History
<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" style="text-align: right;">
    <div>
        <a href="{{ path('rss', {repo: repo, branch: branch}) }}" class="btn btn-default btn-sm">
            <i class="fa fa-rss"></i>
            &nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true"><i class="fas fa-times"></i></span>
                    </button>
                    <h4 class="modal-title"><strong>Clone</strong></h4>
                </div>
                <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 }}:{{ app.git_clone_subdir }}{{ 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.url_subdir }}/{{ repo }}">
                    {% endif %}



                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        <span class="fas fa-times"></span>
                        Close
                    </button>
                </div>
            </div>

        </div>
    </div>

{% endif %}

<div class="p3x-gitlist-breadcrumb-divider"></div>