Goit

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

Goit/res/repo/blame.html (32 lines, 836 B) -rw-r--r-- blame download

012345678910111213141516171819202122232425262728293031
<!DOCTYPE html>
<html lang="en">
	<head>{{template "base/head" .}}</head>
	<body>
		<header>
			{{template "repo/header" .}}<hr>
			{{.PathHTML}} ({{.LineC}}, {{.Size}}) {{.Mode}}
			<a href="/{{.Name}}/file/{{.Path}}">file</a>
			<a href="/{{.Name}}/download/{{.Path}}">download</a>
		</header><hr>
		<main>
			<table class="highlight-row">
				{{if .Blines}}
					{{range $i, $l := .Blines}}
						<tr>
							<td><a href="/{{$.Name}}/commit/{{.Hash}}">{{.ShortHash}}</a></td>
							<td>{{.Author}}</td>
							<td>{{.Date}}</td>
							<td class="lnum" style="text-align: right;">
								<pre><a id="{{$i}}" href="#{{$i}}">{{$i}}</a></pre>
							</td>
							<td class="line"><pre>{{.LineHTML}}</pre></td>
						</tr>
					{{end}}
				{{else}}
					<tr><td>Binary file</td></tr>
				{{end}}
			</table>
		</main>
	</body>
</html>