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.html

View raw Download
text/html • 3.08 kiB
HTML document, ASCII text
        
            
1
{% extends "default.html" %}
2
{% block title %}
3
{{ username }}/{{ repository }}
4
{% endblock %}
5
{% block breadcrumbs %}
6
<li><a href="/{{ username }}">{{ username }}</a></li>
7
<li><a href="/{{ username }}/{{ repository }}">{{ repository }}</a></li>
8
{% endblock %}
9
{% block dialogs %}
10
<dialog id="clone-info">
11
<article class="card">
12
<header class="card-top">
13
<div class="navbar navbar-mini">
14
<ul>
15
<li><b>Clone</b></li>
16
</ul>
17
<x-buttonbox class="dialog-tools">
18
<button class="button-flat button-neutral big-button" type="submit" form="clone-form"><iconify-icon icon="mdi:close"></iconify-icon></button>
19
</x-buttonbox>
20
</div>
21
</header>
22
<section class="card-main">
23
<form id="clone-form">
24
<x-vbox class="nopad">
25
<label for="clone-url">Clone over HTTP</label>
26
<input id="clone-url" readonly value="{{ remote }}" size="80">
27
</x-vbox>
28
</form>
29
</section>
30
</article>
31
</dialog>
32
{% endblock %}
33
{% block nav %}
34
<ul id="repo-tabs">
35
<li class="{% if active_page == 'tree' %}selected{% endif %}">
36
<a href="/{{ username }}/{{ repository }}/tree">
37
Files
38
</a>
39
</li>
40
<li class="{% if active_page == 'branches' %}selected{% endif %}">
41
<a href="/{{ username }}/{{ repository }}/branches">
42
Branches
43
</a>
44
</li>
45
<li class="{% if active_page == 'log' %}selected{% endif %}">
46
<a href="/{{ username }}/{{ repository }}/log">
47
History
48
</a>
49
</li>
50
<li class="{% if active_page == 'prs' %}selected{% endif %}">
51
<a href="/{{ username }}/{{ repository }}/prs">
52
PRs
53
</a>
54
</li>
55
<li class="{% if active_page == 'forum' %}selected{% endif %}">
56
<a href="/{{ username }}/{{ repository }}/forum">
57
Forum
58
</a>
59
</li>
60
<li class="{% if active_page == 'users' %}selected{% endif %}">
61
<a href="/{{ username }}/{{ repository }}/users">
62
Users
63
</a>
64
</li>
65
<li class="{% if active_page == 'settings' %}selected{% endif %}">
66
<a href="/{{ username }}/{{ repository }}/settings">
67
Settings
68
</a>
69
</li>
70
</ul>
71
<div class="flexible-space"></div>
72
73
<x-buttonbox>
74
{% if logged_in_user %}
75
<a title="Mark as favourite" class="button" href="/{{ username }}/{{ repository }}/favourite">
76
{% if not is_favourite %}
77
Favourite
78
{% else %}
79
Remove favourite
80
{% endif %}
81
</a>
82
{% endif %}
83
<button onclick="document.getElementById('clone-info').showModal();">
84
Clone
85
</button>
86
</x-buttonbox>
87
{% endblock %}