gitssg/templates/files.html.tmpl

60 lines
1.9 KiB
Cheetah
Raw Normal View History

2024-06-29 23:25:22 +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>Files - {{.repoInfo.Name}} - {{.repoInfo.Description}}
</title>
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="alternate" type="application/atom+xml" title="stagit Atom Feed" href="atom.xml" />
<link rel="alternate" type="application/atom+xml" title="stagit 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>
2024-06-30 00:05:12 +01:00
<td><h1>{{.repoInfo.Name}}</h1><span class="desc">{{.repoInfo.Description}}</span></td>
2024-06-29 23:25:22 +01:00
</tr>
<tr class="url">
<td></td>
2024-06-30 00:05:12 +01:00
<td>
{{if ne .repoInfo.Url ""}}
git clone <a href="{{.repoInfo.Url}}">{{.repoInfo.Url}}</a>
{{end}}
</td>
2024-06-29 23:25:22 +01:00
</tr>
<tr>
<td></td>
<td>
<a href="log.html">Log</a>
| <a href="files.html">Files</a>
| <a href="refs.html">Refs</a>
| <a href="file/README.html">README</a>
| <a href="file/LICENSE.html">LICENSE</a>
</td>
</tr>
</table>
<hr/>
<div id="content">
<table id="files"><thead>
<tr>
<td><b>Mode</b></td>
<td><b>Name</b></td>
<td class="num" align="right"><b>Size</b></td>
</tr>
</thead>
<tbody>
{{range .files}}
<tr>
<td>{{.Mode}}</td>
<td><a href="{{.Path}}">{{.Name}}</a></td>
2024-06-30 00:05:12 +01:00
<td class="num" align="right">{{if .IsBinary}}{{.Size}}B{{else}}{{.Lines}}L{{end}}</td>
2024-06-29 23:25:22 +01:00
</tr>
{{end}}
</tbody>
</table>
</div>
</body>
</html>