gitmote / internal / webui / templates / browse_tree.html ยท history ยท branches
907 bytes ยท raw
{{define "browse_tree.html"}}{{template "top" .}}
{{template "browse_head" .}}
<table>
<thead><tr><th>Name</th><th>Mode</th><th>Size</th></tr></thead>
<tbody>
{{if .Path}}
<tr><td colspan="3"><a href="/{{.Repo}}/tree/{{.Ref}}/{{parentPath .Path}}">..</a></td></tr>
{{end}}
{{range .Entries}}
<tr>
{{if eq .Type "tree"}}
<td>๐ <a href="/{{$.Repo}}/tree/{{$.Ref}}/{{.Path}}">{{.Name}}/</a></td>
<td>{{.Mode}}</td><td></td>
{{else if eq .Type "blob"}}
<td>๐ <a href="/{{$.Repo}}/blob/{{$.Ref}}/{{.Path}}">{{.Name}}</a></td>
<td>{{.Mode}}</td><td>{{.Size}}</td>
{{else}}
<td>๐ {{.Name}}</td><td>{{.Mode}}</td><td></td>
{{end}}
</tr>
{{else}}
<tr><td colspan="3">empty tree</td></tr>
{{end}}
</tbody>
</table>
{{if .Readme}}<div class="markdown-body">{{.Readme}}</div>{{end}}
{{template "bottom" .}}{{end}}