Goit

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

Goit/res/repo/file.html (27 lines, 690 B) -rw-r--r-- file download

5aa454c Jakob Wakeling 2023-07-27 17:45:56
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" .}}{{.BodyCss}}</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>
a0ac27c Jakob Wakeling 2024-07-06 23:32:05
6
			{{.HtmlPath}} ({{.LineC}}, {{.Size}}) {{.Mode}}
a0ac27c Jakob Wakeling 2024-07-06 23:32:05
7
			{{if .IsText}}<a href="/{{.Name}}/blame/{{.Path}}">blame</a>{{end}}
a0ac27c Jakob Wakeling 2024-07-06 23:32:05
8
			<a href="/{{.Name}}/download/{{.Path}}">download</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
9
		</header><hr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
10
		<main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
11
			<table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
12
				{{if .Lines}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
13
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
14
						<td class="lnum" style="text-align: right;">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
15
							<pre>{{range $i, $l := .Lines}}<a id="{{$i}}" href="#{{$i}}">{{$i}}</a>{{end}}</pre>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
16
						</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
17
						<td class="line">{{.HtmlBody}}</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
18
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
19
				{{else}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
20
					<tr><td>Binary file</td></tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
21
				{{end}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
22
			</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
23
		</main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
24
	</body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
25
</html>
26