{{ define "repo_tree" }} {{ $name := .RepoName }} {{ $ref := .P.Ref }} {{ template "head" . }} {{ $name }}: tree ({{ $ref }}) {{ template "repo_header" . }}
{{ $parent := .P.ParentPath }} {{ if .P.Breadcrumbs }}

{{ .RepoName }} {{- range .P.Breadcrumbs -}} / {{- if .IsLast -}}{{- .Name -}} {{- else -}}{{ .Name }}{{- end -}} {{- end -}}

{{ end }} {{ if $parent }} {{ end }} {{ range .P.Tree }} {{ if not .IsFile }} {{ end }} {{ end }} {{ range .P.Tree }} {{ if .IsFile }} {{ end }} {{ end }}
name last commit last update
..
{{ if $parent }}{{ .Name }}/ {{ else }}{{ .Name }}/{{ end }} {{ commitSummary .Commit.Message }} {{ humanizeRelTime .Commit.Committed }} {{ humanizeTime .Commit.Committed }}
{{ if $parent }}{{ .Name }} {{ else }}{{ .Name }}{{ end }} {{ commitSummary .Commit.Message }} {{ humanizeRelTime .Commit.Committed }} {{ humanizeTime .Commit.Committed }}
{{ if .P.Readme }}
{{.P.Readme}}
{{ end }}
{{ end }}