{{define "content"}}
{{template "repo_header" .}}
{{icon "git-branch" "size-4"}} {{t .Lang "repo.branches"}} ({{len .BranchDetails}})
{{if and .CanWrite (not .IsEmpty)}}
{{end}} {{if .BranchDetails}}
{{range .BranchDetails}}
{{icon "git-branch" "size-4"}} {{.Name}} {{if .IsDefault}} {{t $.Lang "repo.branch.default"}} {{end}} {{if .Subject}} — {{.Subject}} {{end}}
{{.ShortHash}} {{timeAgo .UpdatedAt $.Lang}} {{icon "download" "size-3.5"}} {{if and $.CanWrite (not .IsDefault)}}
{{end}}
{{end}}
{{else}}
{{t .Lang "repo.no_commits"}}
{{end}}
{{icon "tag" "size-4"}} {{t .Lang "repo.tags"}} ({{len .TagDetails}})
{{if and .CanWrite (not .IsEmpty)}}
{{end}} {{if .TagDetails}}
{{range .TagDetails}}
{{icon "tag" "size-4"}} {{.Name}} {{if .Subject}} — {{.Subject}} {{end}}
{{.ShortHash}} {{timeAgo .CreatedAt $.Lang}} {{icon "download" "size-3.5"}} {{if $.CanWrite}}
{{end}}
{{end}}
{{else}}
{{t .Lang "repo.tags.empty"}}
{{end}}
{{end}}