Goit

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

Goit/res/repo/tree.html (48 lines, 1.2 KiB) -rw-r--r-- file download

8abd343 Jakob Wakeling 2023-07-19 00:40:45
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>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
5
			{{template "repo/header" .}}<hr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
6
			{{.HtmlPath}} ({{.Size}}) <a href="/{{.Name}}/download/{{.Path}}">download</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
7
		</header><hr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
8
		<main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
9
			<table class="highlight-row">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
10
				<thead>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
11
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
12
						<td><b>Mode</b></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
13
						<td><b>Name</b></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
14
						<td><b>Size</b></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
15
						<td></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
16
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
17
				</thead>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
18
				<tbody>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
19
					{{if .Files}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
20
						{{range .Files}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
21
							<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
22
								<td>{{.Mode}}</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
23
								<td><a href="/{{$.Name}}/{{.Path}}">{{.Name}}</a></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
24
								<td align="right" {{if .B}}style="padding-right: calc(2ch + 0.4em);"{{end}}>{{.Size}}</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
25
								<td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
26
									{{if .RawPath}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
27
										<a href="/{{$.Name}}/log/{{.RawPath}}">log</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
28
										{{if .IsFile}}
a0ac27c Jakob Wakeling 2024-07-06 23:32:05
29
											{{if .IsText}}
a0ac27c Jakob Wakeling 2024-07-06 23:32:05
30
												<a href="/{{$.Name}}/blame/{{.RawPath}}">blame</a>
a0ac27c Jakob Wakeling 2024-07-06 23:32:05
31
											{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
32
											<a href="/{{$.Name}}/raw/{{.RawPath}}">raw</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
33
										{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
34
										<a href="/{{$.Name}}/download/{{.RawPath}}">download</a>
7dd4459 Jakob Wakeling 2023-11-20 23:18:08
35
									{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
36
								</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
37
							</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
38
						{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
39
					{{else}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
40
						<tr><td colspan="4">No files</td></tr>
8e4646b Jakob Wakeling 2023-07-26 00:53:25
41
					{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
42
				</tbody>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
43
			</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
44
		</main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
45
	</body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
46
</html>
47