{{ 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" }} {{ humanizeTime .Committed }}
{{- if .Message }}{{- commitSummary .Message -}} {{- else -}}Empty message{{- end -}}
{{ end }}

Clone urls

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

Mirror status

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

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