blob: 0af63d6beec65c48d6b1a6f6fa55fa02b85df745 (
plain) (
tree)
|
|
{{- define "repo_tree_dir" -}}
<!DOCTYPE html>
<html>
<head>
{{ template "head_common" . }}
<title>{{ .category_name }}/repos/{{ .repo_name }}/{{ .path_spec }} – Lindenii Forge</title>
</head>
<body class="repo-tree-dir">
<div class="padding-wrapper">
<table id="file-tree">
<thead>
<tr>
<th colspan="3">
/{{ .path_spec }}/ on {{ .ref }}
</th>
</tr>
<tr>
<th scope="col">Mode</th>
<th scope="col">Name</th>
<th scope="col">Size</th>
</tr>
</thead>
<tbody>
{{- $path_spec := .path_spec }}
{{- range .files }}
<tr>
<td class="file-mode">{{ .Mode }}</td>
<td class="file-name"><a href="{{ $path_spec }}/{{ .Name }}">{{ .Name }}</a>{{ if not .Is_file }}/{{ end }}</td>
<td class="file-size">{{ .Size }}</td>
</tr>
{{- end }}
</tbody>
</table>
</div>
<div class="padding-wrapper">
<div id="refs">
</div>
</div>
<div class="padding-wrapper">
{{ if .readme }}
<table id="readme">
<thead>
<tr>
<th>
README.md
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
{{ .readme -}}
</td>
</tr>
</tbody>
</table>
{{ end }}
</div>
</body>
</html>
{{- end -}}
|