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.75 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
<x-vbox class="nopad">
31
<label for="clone-url">{% trans %}Clone over HTTP{% endtrans %}</label>
32
<input id="clone-url" readonly value="{{ remote }}" size="80">
33
</x-vbox>
34
</x-vbox>
35
</form>
36
</section>
37
</article>
38
</dialog>
39
{% endblock %}
40
{% block nav %}
41
<ul id="repo-tabs">
42
<li class="{% if active_page == 'tree' %}selected{% endif %}">
43
<a href="/{{ username }}/{{ repository }}/tree">
44
{% trans %}Files{% endtrans %}
45
</a>
46
</li>
47
<li class="{% if active_page == 'branches' %}selected{% endif %}">
48
<a href="/{{ username }}/{{ repository }}/branches">
49
{% trans %}Branches{% endtrans %}
50
</a>
51
</li>
52
<li class="{% if active_page == 'log' %}selected{% endif %}">
53
<a href="/{{ username }}/{{ repository }}/log">
54
{% trans %}History{% endtrans %}
55
</a>
56
</li>
57
<li class="{% if active_page == 'prs' %}selected{% endif %}">
58
<a href="/{{ username }}/{{ repository }}/prs">
59
{% trans %}PRs{% endtrans %}
60
</a>
61
</li>
62
<li class="{% if active_page == 'forum' %}selected{% endif %}">
63
<a href="/{{ username }}/{{ repository }}/forum">
64
{% trans %}Forum{% endtrans %}
65
</a>
66
</li>
67
<li class="{% if active_page == 'users' %}selected{% endif %}">
68
<a href="/{{ username }}/{{ repository }}/users">
69
{% trans %}Users{% endtrans %}
70
</a>
71
</li>
72
<li class="{% if active_page == 'settings' %}selected{% endif %}">
73
<a href="/{{ username }}/{{ repository }}/settings">
74
{% trans %}Settings{% endtrans %}
75
</a>
76
</li>
77
</ul>
78
<div class="flexible-space"></div>
79
80
<x-buttonbox>
81
{% if logged_in_user %}
82
<a title="{% trans %}Mark as favourite{% endtrans %}" class="button" href="/{{ username }}/{{ repository }}/favourite">
83
{% if not is_favourite %}
84
{% trans %}Favourite{% endtrans %}
85
{% else %}
86
{% trans %}Remove favourite{% endtrans %}
87
{% endif %}
88
</a>
89
{% endif %}
90
<button onclick="document.getElementById('info').showModal();">
91
{% trans %}Information{% endtrans %}
92
</button>
93
</x-buttonbox>
94
{% endblock %}