1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{% extends "base.html" %}
{% from "macros.html" import link, section %}
{% block head %}
<script defer src="/static/vendor/showdown-2.1.0.min.js"></script>
{% endblock %}
{% block content %}
<h1>{{ project }}</h1>
{% if descr %}
<p>{{ descr }}</p>
{% endif %}
{% call section("Project", flush=true) %}
<table class="table table-vcenter card-table">
<thead>
<tr><th>Field</th><th>Value</th></tr>
</thead>
<tbody>
<tr>
<td>Owner</td>
<td>{{ owner }}</td>
</tr>
<tr>
<td>
<label for="summary-ref-select">Ref</label>
<select id="summary-ref-select">
<option value="HEAD" selected>HEAD</option>
</select>
</td>
<td>
{{ link(ref.commit_href, ref.display, id="summary-ref-commit-link") }}:
{{ link(ref.browse_href, "browse", id="summary-ref-browse-link") }} -
{{ link(ref.log_href, "log", id="summary-ref-log-link") }} -
{{ link(ref.shortlog_href, "shortlog", id="summary-ref-shortlog-link") }}
</td>
</tr>
<tr>
<td>Branches</td>
<td>{{ link(project_url ~ "?a=heads", "view branches") }}</td>
</tr>
<tr>
<td>Merge request</td>
<td>
{% if merge_request %}
{% with project=merge_request.project, branches=merge_request.branches, theirs_default_ref=merge_request.theirs_default_ref, ours_default_ref=merge_request.ours_default_ref %}
{% include "merge_request_summary_cell.html" %}
{% endwith %}
{% else %}
<span class="text-muted">No branches.</span>
{% endif %}
</td>
</tr>
<tr>
<td>Tags</td>
<td>{{ link(project_url ~ "?a=tags", "view tags") }}</td>
</tr>
<tr>
<td>Remotes</td>
<td>{{ link(project_url ~ "?a=remotes", "view remotes") }}</td>
</tr>
<tr>
<td>Board</td>
<td>{{ link(board.href, board.text, style=board.style) }}</td>
</tr>
<tr>
<td>Search</td>
<td>{{ link(project_url_enc ~ "/search", "search files") }}</td>
</tr>
<tr>
<td>Hooks</td>
<td>
{% with mode=hooks.mode, project_enc=hooks.project_enc, installed=hooks.installed, available=hooks.available %}
{% include "hooks_summary_cell.html" %}
{% endwith %}
</td>
</tr>
{% for row in extra_rows %}
<tr>{% for cell in row %}<td>{{ cell }}</td>{% endfor %}</tr>
{% endfor %}
</tbody>
</table>
{% endcall %}
{% call section("Files") %}
<div id="summary-tree-container" class="summary-tree-table">{{ ref.tree_html }}</div>
<p class="px-3 pb-3 mb-0">{{ link(ref.browse_href, "Browse full tree", id="summary-tree-browse-link") }}</p>
{% endcall %}
<div id="summary-readme-container" data-project="{{ project }}">{{ ref.readme_html }}</div>
{% endblock %}
{% block scripts %}
<script type="module" src="/static/summary-ref-switcher.js"></script>
<script src="/static/hook-install.js"></script>
{% endblock %}