ASCII text
        
            1
            {% extends "repo.html" %} 
        
            2
            {% set active_page = "branches" %} 
        
            3
            {% block title %} 
        
            5
                {% trans username=username, repository=repository %}Branches of {{ username }}/{{ repository }}{% endtrans %} 
        
            6
            {% endblock %} 
        
            7
            {% block content %} 
        
            8
            <x-vbox> 
        
            9
                <x-frame style="--width: 896px;" class="flexible-space"> 
        
            10
                    <h2>{% trans %}Branches{% endtrans %}</h2> 
        
            11
                    <x-vbox> 
        
            12
                        {% for branch in repo.branches %} 
        
            13
                            <article class="card card-horizontal"> 
        
            14
                                <figure style="background-color: var(--color-branch); color: var(--color-branch-text);" class="branch-icon"> 
        
            15
                                    <iconify-icon icon="{% if repo_data.defaultBranch == branch.name %}mdi:star{% else %}mdi:source-branch{% endif %}"></iconify-icon> 
        
            16
                                </figure> 
        
            17
                                <section class="card-main flexible-space"> 
        
            18
                                    <h3>{{ branch.name }}</h3> 
        
            19
                                    {% if repo_data.defaultBranch == branch.name %} 
        
            20
                                        <p>{% trans %}Default{% endtrans %}</p> 
        
            21
                                    {% endif %} 
        
            22
                                    <code>{{ branch.commit.hexsha }}</code> 
        
            23
                                </section> 
        
            24
                                <section> 
        
            25
                                    <x-buttonbox style="align-items: center; height: 100%;"> 
        
            26
                                        <a class="button" href="/{{ username }}/{{ repository }}/tree/{{ branch.name | replace('/', '~') }}">{% trans %}View tree{% endtrans %}</a> 
        
            27
                                    </x-buttonbox> 
        
            28
                                </section> 
        
            29
                            </article> 
        
            30
                        {% endfor %} 
        
            31
                    </x-vbox> 
        
            32
                    <h2>{% trans %}Tags{% endtrans %}</h2> 
        
            33
                    <x-vbox> 
        
            34
                        {% for tag in repo.tags %} 
        
            35
                            <article class="card card-horizontal"> 
        
            36
                                <figure style="background-color: var(--color-tag); color: var(--color-tag-text);" class="branch-icon"> 
        
            37
                                    <iconify-icon icon="mdi:tag"></iconify-icon> 
        
            38
                                </figure> 
        
            39
                                <section class="card-main flexible-space"> 
        
            40
                                    <h3>{{ tag.name }}</h3> 
        
            41
                                    <code>{{ tag.commit.hexsha }}</code> 
        
            42
                                </section> 
        
            43
                                <section> 
        
            44
                                    <x-buttonbox style="align-items: center; height: 100%;"> 
        
            45
                                        <a class="button" href="/{{ username }}/{{ repository }}/tree/tag:{{ tag.name | replace('/', '~') }}">{% trans %}View tree{% endtrans %}</a> 
        
            46
                                    </x-buttonbox> 
        
            47
                                </section> 
        
            48
                            </article> 
        
            49
                        {% endfor %} 
        
            50
                    </x-vbox> 
        
            51
                </x-frame> 
        
            52
            </x-vbox> 
        
            53
            {% endblock %} 
        
            54