Goit

Simple and lightweight Git web server
git clone http://git.omkov.net/Goit
Log | Tree | Refs | README | Download

Goit/res/repo/commit.html (41 lines, 1.1 KiB) -rw-r--r-- file download

3e159d3 Jakob Wakeling 2023-08-06 23:29:48
0
<!DOCTYPE html>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
1
<html lang="en">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
2
	<head>{{template "base/head" .}}</head>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
3
	<body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
4
		<header>{{template "repo/header" .}}</header><hr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
5
		<main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
6
			<table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
7
				<tr><td>Author</td><td>{{.Author}}</td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
8
				<tr><td>Date</td><td>{{.Date}}</td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
9
				<tr><td>Commit</td><td><a href="/{{.Name}}/commit/{{.Commit}}">{{.Commit}}</a></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
10
				{{range $i, $h := .Parents}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
11
					<tr><td>Parent</td><td><a href="/{{$.Name}}/commit/{{$h}}">{{$h}}</a></td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
12
				{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
13
			</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
14
			<p>{{.MessageSubject}}</p>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
15
			<p>{{.MessageBody}}</p>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
16
			<h2>Diffstat</h2>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
17
			<table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
18
				{{range .Stats}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
19
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
20
						<td>{{.Status}}</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
21
						<td><a href="/{{$.Name}}/file/{{.Path}}">{{.Name}}</a></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
22
						<td>|</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
23
						{{if .IsBinary}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
24
							<td colspan="2">binary</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
25
						{{else}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
26
							<td>{{.Num}}</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
27
							<td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
28
								<span style="color: #008800;">{{.Plusses}}</span><!--
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
29
								--><span style="color: #AA0000;">{{.Minuses}}</span>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
30
							</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
31
						{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
32
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
33
				{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
34
			</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
35
			<p>{{.Summary}}</p>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
36
			<pre style="tab-size: 4;">{{.Diff}}</pre>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
37
		</main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
38
	</body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
39
</html>
40