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