By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 repo-branches.html

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