gitssg/templates/log.html.tmpl

63 lines
2.2 KiB
Cheetah
Raw Normal View History

2024-06-30 00:05:12 +01:00
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Log - {{.repoInfo.Name}} - {{.repoInfo.Description}}</title>
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="alternate" type="application/atom+xml" title="frontends Atom Feed" href="atom.xml" />
<link rel="alternate" type="application/atom+xml" title="frontends Atom Feed (tags)" href="tags.xml" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<table>
<tr>
<td><a href="../"><img src="logo.png" alt="" width="32" height="32" /></a></td>
<td><h1>{{.repoInfo.Name}}</h1><span class="desc">{{.repoInfo.Description}}</span></td>
</tr>
<tr class="url">
<td></td>
<td>
{{if ne .repoInfo.Url ""}}
git clone <a href="{{.repoInfo.Url}}">{{.repoInfo.Url}}</a>
{{end}}
</td>
</tr>
<tr>
<td></td>
<td>
{{menu .repoInfo .relpath}}
2024-06-30 00:05:12 +01:00
</td>
</tr>
</table>
<hr/>
<div id="content">
<table id="log">
<thead>
<tr>
<td><b>Date</b></td>
<td><b>Commit message</b></td>
<td><b>Author</b></td>
<td class="num" align="right"><b>Files</b></td>
<td class="num" align="right"><b>+</b></td>
<td class="num" align="right"><b>-</b></td>
</tr>
</thead>
<tbody>
2024-06-30 11:09:40 +01:00
{{- range .commits}}
2024-06-30 00:05:12 +01:00
<tr>
2024-06-30 11:09:40 +01:00
<td>{{timeShortFormat .Date}}</td>
<td><a href="commit/{{.Hash}}.html">{{firstLine .Msg}}</a></td>
<td>{{.AuthorName}}</td>
2024-06-30 00:05:12 +01:00
<td class="num" align="right">{{.Files}}</td>
<td class="num" align="right">+{{.Adds}}</td>
<td class="num" align="right">-{{.Dels}}</td>
</tr>
{{- end}}
{{if ne .remaining 0}}
<tr><td></td><td colspan="5">{{.remaining}} more commit{{if ne .remaining 1}}s{{end}} remaining, fetch the repository</td></tr>
{{end}}
2024-06-30 00:05:12 +01:00
</tbody></table></div>
</body>
</html>