Goit

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

Goit/res/repo/log.html (53 lines, 1.3 KiB) -rw-r--r-- file download

e08e053 Jakob Wakeling 2023-07-18 21:31:14
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 class="highlight-row">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
7
				<thead>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
8
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
9
						<td><b>Date</b></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
10
						<td><b>Message</b></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
11
						<td><b>Author</b></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
12
						<td><b>Files</b></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
13
						<td><b>+</b></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
14
						<td><b>-</b></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
15
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
16
				</thead>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
17
				<tbody>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
18
					{{if .Commits}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
19
						{{range .Commits}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
20
							<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
21
								<td>{{.Date}}</a></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
22
								<td><a href="/{{$.Name}}/commit/{{.Hash}}">{{.Message}}</a></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
23
								<td>{{.Author}}</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
24
								<td style="text-align: right;">{{.Files}}</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
25
								<td style="text-align: right; color: #008800;">{{.Additions}}</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
26
								<td style="text-align: right; color: #AA0000;">{{.Deletions}}</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
27
							</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
28
						{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
29
					{{else}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
30
						<tr><td colspan="6">No commits</td></tr>
64718e1 Jakob Wakeling 2023-07-24 21:56:07
31
					{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
32
				</tbody>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
33
			</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
34
			<footer>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
35
				{{if gt .PrevOffset 0}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
36
					<a href="/{{$.Name}}/log?o={{.PrevOffset}}">[prev]</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
37
				{{else if eq .PrevOffset 0}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
38
					<a href="/{{$.Name}}/log">[prev]</a>
64718e1 Jakob Wakeling 2023-07-24 21:56:07
39
				{{else}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
40
					<span>[prev]</span>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
41
				{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
42
				<span>{{.Page}}</span>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
43
				{{if gt .NextOffset 0}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
44
					<a href="/{{$.Name}}/log?o={{.NextOffset}}">[next]</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
45
				{{else}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
46
					<span>[next]</span>
1828e5f Jakob Wakeling 2023-07-19 19:53:59
47
				{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
48
			</footer>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
49
		</main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
50
	</body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
51
</html>
52