{{define "content"}}
{{template "repo_header" .}} {{if .IsEmpty}}
{{icon "terminal" "size-4"}} {{t .Lang "repo.empty.title"}} {{icon "key" "size-3.5"}} {{t .Lang "settings.tokens"}}
1. {{t .Lang "repo.empty.new_cmd"}}
{{.QuickStartNew}}
2. {{t .Lang "repo.empty.push_cmd"}}
{{.QuickStartExisting}}
{{else}}
{{icon "git-branch" "size-3.5"}} {{len .Branches}} {{icon "history" "size-3.5"}} {{t .Lang "repo.tab.commits"}} {{if .Breadcrumbs}} {{end}}
{{if .LatestCommit}}
{{avatarInitial .LatestCommit.AuthorName}} {{.LatestCommit.AuthorName}} {{.LatestCommit.Subject}}
{{.LatestCommit.ShortHash}} {{timeAgo .LatestCommit.AuthoredAt .Lang}}
{{end}}
{{if .SubPath}} {{icon "arrow-left" "size-3.5"}} .. {{end}} {{range .Entries}}
{{if eq .Type "tree"}} {{icon "folder" "size-4"}} {{.Name}} {{else}} {{icon "file" "size-4"}} {{.Name}} {{end}}
{{if not .CommitTime.IsZero}} {{timeAgo .CommitTime $.Lang}} {{else if eq .Type "blob"}} {{formatSize .Size}} {{end}}
{{end}}
{{if .ReadmeHTML}}
{{icon "book-open" "size-3.5"}} {{.ReadmeName}} {{t .Lang "repo.view_file"}}
{{.ReadmeHTML}}
{{end}} {{end}}
{{end}}