{{ define "repo_index" }} {{ template "head" . }} {{ .RepoName}} — {{ .Meta.Title }} {{ template "repo_header" . }}
{{ if .P.IsEmpty }}

Repository is empty

{{ else }}
{{ $repo := .RepoName }} {{ range .P.Commits }}
{{ .HashShort }} — {{ .AuthorName }} {{ .Committed.Format "Mon, 02 Jan 2006" }} {{ .Committed }}
{{- if .Message }}{{- commitSummary .Message -}} {{- else -}}Empty message{{- end -}}
{{ end }}

Clone urls

https://{{.Meta.Host}}/{{.RepoName}}
{{ if .Meta.SSHEnabled }}
git@{{.Meta.Host}}:{{.RepoName}}
{{end}} {{- if .P.IsMirror -}}

Mirror status

Last updated {{ humanizeTime .P.MirrorLastSync }} from: {{.P.MirrorURL}}

{{- end}}
{{ end }} {{- if .P.Readme }}
{{- .P.Readme -}}
{{- end -}}
{{ end }}