Lindenii Project Forge
Login
Commit info
ID4fc7b66f8c8a0d65fe536d718a645b647823b9e6
AuthorRunxi Yu<me@runxiyu.org>
Author dateMon, 10 Feb 2025 10:46:11 +0800
CommitterRunxi Yu<me@runxiyu.org>
Committer dateMon, 10 Feb 2025 10:46:11 +0800
Actions
Get patch
repo_tree_dir: Fix path_spec
{{- define "repo_tree_dir" -}}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/static/style.css" />
<title>{{ .project_name }}/repos/{{ .repo_name }}/{{ .path }}</title>
<title>{{ .project_name }}/repos/{{ .repo_name }}/{{ .path_spec }}</title>
</head>
<body class="repo-index">
<div class="padding-wrapper">
<p>
/{{ .path_spec }}/
</p>
<table id="file-tree">
<thead>
<tr>
<th scope="col">Mode</th>
<th scope="col">Name</th>
<th scope="col">Size</th>
</tr>
</thead>
<tbody>
{{- range .files }}
<tr>
<td class="file-mode">{{ .Mode }}</td>
<td class="file-name">{{ .Name }}</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">
<div id="readme">
{{ .readme -}}
</div>
</div>
</body>
</html>
{{- end -}}