{{define "content"}} {{$p := .Data.Page}} {{template "filebar" .Data}} {{if .Data.Binary}}

Binary file, view raw.

{{else if .Data.Large}}

File too large to display, view raw.

{{else if .Data.Markdown}}

View source

{{.Data.Markdown}}
{{else if .Data.Highlighted}}
{{.Data.Highlighted}}
{{else}}
{{range $i, $l := lines .Data.Content}}{{end}}
{{inc $i}}{{$l}}
{{end}} {{end}} {{define "filebar"}} {{$p := .Page}}
{{$p.Repo.Name}}{{range $i, $c := .Crumbs}}/{{$c}}{{end}} {{with .Entry}}{{perm .Mode}}{{if eq .Type "blob"}}{{size .Size}}{{end}}{{end}} ViewLogView rawPermalink {{with .LastCommit}}{{short .Hash}} — {{.Subject}} {{ago .Time}}{{end}}
{{end}}