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-- blame download

01234567891011121314151617181920212223242526
<!DOCTYPE html>
<html lang="en">
	<head>{{template "base/head" .}}{{.BodyCss}}</head>
	<body>
		<header>
			{{template "repo/header" .}}<hr>
			{{.HtmlPath}} ({{.LineC}}, {{.Size}}) {{.Mode}}
			{{if .IsText}}<a href="/{{.Name}}/blame/{{.Path}}">blame</a>{{end}}
			<a href="/{{.Name}}/download/{{.Path}}">download</a>
		</header><hr>
		<main>
			<table>
				{{if .Lines}}
					<tr>
						<td class="lnum" style="text-align: right;">
							<pre>{{range $i, $l := .Lines}}<a id="{{$i}}" href="#{{$i}}">{{$i}}</a>{{end}}</pre>
						</td>
						<td class="line">{{.HtmlBody}}</td>
					</tr>
				{{else}}
					<tr><td>Binary file</td></tr>
				{{end}}
			</table>
		</main>
	</body>
</html>