~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: bb19ae1e748aa1a24394395c950e58178908d695 (plain)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{% if wikis %}
<div class="project_readme">
{% if repo_wiki %}
{{ repo_wiki }}
{% else %}
<p style="background: red;">This project doesn't have a wiki.</p>
{% endif %}
</div>

{% elif about %}
<div class="project_readme">
{% if repo_readme %}
{{ repo_readme }}
{% else %}
<p style="background: red;">This project doesn't have a README file.</p>
{% endif %}
</div>
{% elif summary %}
<table class="laboratory_list">
	<tr>
		<td>Idle</td>
		<td>{{ repo_idle }}</td>
	</tr>
	<tr>
		<td>Git clone URL</td>
		<td>{{ repo_cloneurl }}</td>
	</tr>
	<tr>
		<td></td>
		<td>{{ repo_clonessh }}</td>
	</tr>
</table>

<table class="laboratory_list">
{% if repo_branches_list %}
	<tr>
		<th>Branch</th>
		<th>Commit message</th>
		<th>Author</th>
		<th>Age</th>
	</tr>
	{{ repo_branches_list }}
{% endif %}
</table>

<table class="laboratory_list">
{% if repo_tags_list %}
	<tr>
		<th>Tag</th>
		<th>Commit message</th>
		<th>Author</th>
		<th>Age</th>
	</tr>
	{{ repo_tags_list }}
{% endif %}
</table>

{% elif tree %}
{% if repo_tree %}
<table class="laboratory_list">
	<tr>
		<th>Mode</th>
		<th>Name</th>
		<th>Type</th>
	</tr>
	{{ repo_tree }}
</table>
{% else %}
<table class="laboratory_blob">
	<tr>
		<td class="laboratory_bloblines">
<pre>
{{ repo_bloblines }}
</pre>
		</td>
		<td class="laboratory_blobfile">
<pre>
{{ repo_blob }}
</pre>
		</td>
	</tr>
</table>
{% endif %}

{% elif issues %}
{% if repo_issueslist %}
<ul class="laboratory_issuestabs">
	<li><a href="?state=all">All issues</a></li>
	<li><a href="?state=opened">Open issues</a></li>
	<li><a href="?state=closed">Closed issues</a></li>
</ul>
<table class="laboratory_list laboratory_issues">
	<tr>
		<th>Id</th>
		<th>Name</th>
		<th>Author</th>
		<th>State</th>
		<th>Idle</th>
	</tr>
	{{ repo_issueslist }}
</table>
<a href="?state={{ repo_issuesstate }}&page={{ repo_issuesnextpage }}">Next →</a>
{% elif repo_issue %}
<h3>{{ repo_issuetitle }} - #{{ repo_issueid }}</h3>
<table class="laboratory_list laboratory_issues">
	<tr>
		<td>State</td>
		<td>{{ repo_issuestate }}</td>
	</tr>
	<tr>
		<td>Idle</td>
		<td>{{ repo_issueidle }}</td>
	</tr>
	<tr>
		<td>Author</td>
		<td>{{ repo_issueauthor }}</td>
	</tr>
	<tr>
		<td>Participants</td>
		<td>{{ repo_issueparticipants }}</td>
	</tr>
	<tr>
		<td></td>
		<td style="white-space: normal;">
			{{ repo_issue }}
		</td>
	</tr>
</table>
{% else %}
<p style="background-color: orangered; padding: 10px">an error occured: no issues</p>
{% endif %}
{% elif refs %}
<table class="laboratory_list">
{% if repo_branches_list %}
	<tr>
		<th>Branch</th>
		<th>Commit message</th>
		<th>Author</th>
		<th>Age</th>
	</tr>
	{{ repo_branches_list }}
{% endif %}
</table>
{% elif log %}
<table class="laboratory_list">
{% if repo_commits_list %}
	<tr>
		<th>Short commit ID</th>
		<th>Commit message</th>
		<th>Author</th>
		<th>Age</th>
	</tr>
	{{ repo_commits_list }}
{% else %}
	<tr>
		<td>Author</td>
		<td>{{ repo_commit_author }}</td>
	</tr>
	<tr>
		<td>Committer</td>
		<td>{{ repo_commit_committer }}</td>
	</tr>
	<tr>
		<td>Commit</td>
		<td><a href="{{ repo_url }}/-/tree/{{ repo_commit_id }}">{{ repo_commit_id }}</a></td>
	</tr>
	<tr>
		<td>Parent</td>
		<td><a href="{{ repo_url }}/-/commit/{{ repo_commit_parent }}">{{ repo_commit_parent }}</a></td>
	</tr>
	<tr>
		<td>Message</td>
		<td>{{ repo_commit_message }}</td>
	</tr>
</table>
<pre style="font-size: 12pt">
{{ repo_commit_diff }}
</pre>
{% endif %}
</table>
{% endif %}