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.99 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="info">
11
<article class="card">
12
<header class="card-top">
13
<div class="navbar navbar-mini">
14
<ul>
15
<li><h4>{% trans %}Information{% endtrans %}</h4></li>
16
</ul>
17
<x-buttonbox class="dialog-tools">
18
<button class="button-flat button-neutral big-button" type="submit" form="info-form"><iconify-icon icon="mdi:close"></iconify-icon></button>
19
</x-buttonbox>
20
</div>
21
</header>
22
<section class="card-main" style="padding-top: var(--padding-card-top);">
23
<form id="info-form">
24
<x-vbox>
25
<x-vbox class="nopad">
26
{% if repo_data.info %}
27
{{ repo_data.info | markdown }}
28
{% endif %}
29
</x-vbox>
30
{% if repo_data.url %}
31
<p>
32
Homepage: <a href="{{ repo_data.url }}">{{ repo_data.url }}</a>
33
</p>
34
{% endif %}
35
<x-vbox class="nopad">
36
<label for="clone-url">{% trans %}Clone over HTTP{% endtrans %}</label>
37
<input id="clone-url" readonly value="{{ remote }}" size="80">
38
</x-vbox>
39
</x-vbox>
40
</form>
41
</section>
42
</article>
43
</dialog>
44
{% endblock %}
45
{% block nav %}
46
<ul id="repo-tabs">
47
<li class="{% if active_page == 'tree' %}selected{% endif %}">
48
<a href="/{{ username }}/{{ repository }}/tree">
49
{% trans %}Files{% endtrans %}
50
</a>
51
</li>
52
<li class="{% if active_page == 'branches' %}selected{% endif %}">
53
<a href="/{{ username }}/{{ repository }}/branches">
54
{% trans %}Branches{% endtrans %}
55
</a>
56
</li>
57
<li class="{% if active_page == 'log' %}selected{% endif %}">
58
<a href="/{{ username }}/{{ repository }}/log">
59
{% trans %}History{% endtrans %}
60
</a>
61
</li>
62
<li class="{% if active_page == 'prs' %}selected{% endif %}">
63
<a href="/{{ username }}/{{ repository }}/prs">
64
{% trans %}PRs{% endtrans %}
65
</a>
66
</li>
67
<li class="{% if active_page == 'forum' %}selected{% endif %}">
68
<a href="/{{ username }}/{{ repository }}/forum">
69
{% trans %}Forum{% endtrans %}
70
</a>
71
</li>
72
<li class="{% if active_page == 'users' %}selected{% endif %}">
73
<a href="/{{ username }}/{{ repository }}/users">
74
{% trans %}Users{% endtrans %}
75
</a>
76
</li>
77
<li class="{% if active_page == 'settings' %}selected{% endif %}">
78
<a href="/{{ username }}/{{ repository }}/settings">
79
{% trans %}Settings{% endtrans %}
80
</a>
81
</li>
82
</ul>
83
<div class="flexible-space"></div>
84
85
<x-buttonbox>
86
{% if logged_in_user %}
87
<a title="{% trans %}Mark as favourite{% endtrans %}" class="button" href="/{{ username }}/{{ repository }}/favourite">
88
{% if not is_favourite %}
89
{% trans %}Add favourite{% endtrans %}
90
{% else %}
91
{% trans %}Remove favourite{% endtrans %}
92
{% endif %}
93
</a>
94
{% endif %}
95
<button onclick="document.getElementById('info').showModal();">
96
{% trans %}Information{% endtrans %}
97
</button>
98
</x-buttonbox>
99
{% endblock %}