RSS Git Download  Clone
Raw Blame History
{% extends 'layout-page.twig' %}

{% set page = 'commits' %}

{% block title %}P3X GitList{% endblock %}

{% block content %}

    {% embed 'breadcrumb.twig' with {breadcrumbs: breadcrumbs} %}

        {% block left %}

            <a class="btn btn-default btn-sm" href="{{ path('blob', {repo: repo, commitishPath: branch ~ '/' ~ file}) }}"> <span class="far fa-file"></span> View file</a>

        {%  endblock %}

    {% endembed %}



    {% if blames %}

        <span class="label label-info">Blames found: {{ blames | length }}</span>
        <span class="label label-info">Mode: {{ type }}</span>
        <span class="label label-info">Binary: {{ binary ? 'true' : 'false' }}</span>
        <br/>
        <br/>


        <div class="p3x-gitlist-overlay">
            <div>
                <i class="fas fa-cog fa-spin fa-4x"></i>
            </div>
            <br/>
            <div>
                Hang on, we reloading big blames...
            </div>
        </div>


                {% for blame in blames %}
                    <div style="" class="p3x-gitlist-file-fragment-blame-line">
                        <div class="p3x-gitlist-file-fragment-blame-line-header">
                            <span class="far fa-file-alt"></span>&nbsp;<a id="{{ blame.commitShort }}" href="{{ path('commit', {repo: repo, commit: blame.commit}) }}">{{ blame.commitShort }}</a>
                        </div>
                        <div class="p3x-gitlist-file-fragment-blame-line-content">
                            {% if not binary %}
                                <div class="p3x-gitlist-file-fragment-text" id="p3x-gitlist-file-fragment-text-{{ loop.index0 }}">{{ blame.line }}</div>
                            {%  else %}
                                binary
                            {% endif %}
                        </div>
                    </div>
                {% endfor %}
                    <div class="p3x-gitlist-file-fragment-blame-line-bottom"></div>

    {% else %}
        <h4>
            No blames.
        </h4>
    {% endif %}






{% endblock %}