internal/web/templates/tree.html

a0dd5878fbda93a49fe7d4503e2ac80fc6f6c8f3
gitbay/internal/web/templates/tree.html

14 lines · 712 bytes

 1{{define "title"}}{{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
 2{{define "content"}}
 3{{template "repoheader" .}}
 4<p class="crumbs">{{.Ref}}: {{range .Crumbs}}<a href="{{.URL}}">{{.Name}}</a>/{{end}}</p>
 5<table class="tree">
 6{{range .Entries}}<tr>
 7  <td class="mode">{{.Mode}}</td>
 8  {{if eq .Type "tree"}}<td><a href="/{{$.Repo.OwnerName}}/{{$.Repo.Name}}/tree/{{$.Ref}}/{{$.Prefix}}{{.Name}}">{{.Name}}/</a></td><td></td>
 9  {{else}}<td><a href="/{{$.Repo.OwnerName}}/{{$.Repo.Name}}/blob/{{$.Ref}}/{{$.Prefix}}{{.Name}}">{{.Name}}</a></td><td class="size">{{.Size}}</td>{{end}}
10</tr>
11{{else}}<tr><td>empty</td></tr>{{end}}
12</table>
13{{if .ReadmeHTML}}<section class="readme">{{.ReadmeHTML}}</section>{{end}}
14{{end}}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form