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