git@cosmocr.at/gitweb.git @ HEAD · summary refs log
HEAD / internal / server / templates / git.html /
internal/server/templates/git.html · 3.2 KiB · raw
view: SourceMarkdown ☑ force

{{define "gitnav"}}

{{.RepoName}} {{if .Ref}}@ {{.Ref}}{{end}} · summary refs {{if .LogURL}}log{{end}}
{{end}}

{{define "crumbs"}} {{if .}}

{{range .}}{{if .URL}}{{.Name}}{{else}}{{.Name}}{{end}} / {{end}}
{{end}} {{end}}

{{define "summary"}} {{template "gitnav" .Nav}}

{{.Nav.RepoName}}

branches{{range .Branches}}{{.Name}}  {{else}}none{{end}}
tags{{range .Tags}}{{.Name}}  {{else}}none{{end}}

Files

{{template "treetable" .Entries}} {{if .Readme}}

README

{{.Readme}}
{{end}} {{end}}

{{define "tree"}} {{template "gitnav" .Nav}}

{{.Title}}

{{template "crumbs" .Crumbs}} {{template "treetable" .Entries}} {{end}}

{{define "treetable"}}

{{range .}} {{else}} {{end}}
{{.Name}}{{if .IsDir}}/{{end}}{{.Size}}
(empty)
{{end}}

{{define "blob"}} {{template "gitnav" .Nav}} {{template "crumbs" .Crumbs}}

{{.Path}} · {{.Size}}{{if .RawURL}} · raw{{end}}
{{if .Binary}}

Binary file not shown. Download raw.

{{else}}
view: {{range .Renderers}}{{.Label}}{{end}} {{if .Force}}☑{{else}}☐{{end}} force
{{.Body}}
{{end}} {{end}}

{{define "log"}} {{template "gitnav" .Nav}}

Commits · {{.Nav.Ref}}

{{range .Commits}} {{else}} {{end}}
{{.Subject}} {{.Author}} {{.When}} {{.Short}}
(no commits)
{{end}}

{{define "commit"}} {{template "gitnav" .Nav}}

{{.Subject}}
commit {{.Hash}}
{{.Author}} · {{.When}}
{{range .Parents}}
parent {{.Short}}
{{end}} {{if .Body}}
{{.Body}}
{{end}}
{{.Diff}} {{end}}

{{define "refs"}} {{template "gitnav" .Nav}}

Branches

{{range .Branches}} {{else}}{{end}}
{{.Name}}log{{.Short}}
none

Tags

{{range .Tags}} {{else}}{{end}}
{{.Name}}{{.Short}}
none
{{end}}