{{with .Repository}}
{{$avatar := (repoAvatar . 32 "mr-3")}} {{if $avatar}} {{$avatar}} {{else}} {{template "repo/icon" .}} {{end}} {{.Owner.Name}}
/
{{.Name}} {{svg "octicon-rss" 18}}
{{if .IsTemplate}} {{if .IsPrivate}} {{$.i18n.Tr "repo.desc.private_template"}} {{else}} {{if .Owner.Visibility.IsPrivate}} {{$.i18n.Tr "repo.desc.internal_template"}} {{end}} {{end}} {{else}} {{if .IsPrivate}} {{$.i18n.Tr "repo.desc.private"}} {{else}} {{if .Owner.Visibility.IsPrivate}} {{$.i18n.Tr "repo.desc.internal"}} {{end}} {{end}} {{end}} {{if .IsArchived}} {{$.i18n.Tr "repo.desc.archived"}} {{end}}
{{if .IsMirror}}{{end}} {{if .IsFork}}
{{$.i18n.Tr "repo.forked_from"}} {{.BaseRepo.FullName}}
{{end}} {{if .IsGenerated}}
{{$.i18n.Tr "repo.generated_from"}} {{.TemplateRepo.FullName}}
{{end}}
{{if not (or .IsBeingCreated .IsBroken)}}
{{if $.RepoTransfer}}
{{$.CsrfTokenHtml}}
{{$.CsrfTokenHtml}}
{{end}}
{{$.CsrfTokenHtml}}
{{CountFmt .NumWatches}}
{{if not $.DisableStars}}
{{$.CsrfTokenHtml}}
{{CountFmt .NumStars}}
{{end}} {{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}}
{{svg "octicon-repo-forked"}}{{$.i18n.Tr "repo.fork"}} {{CountFmt .NumForks}}
{{end}}
{{end}}
{{end}}
{{if not (or .Repository.IsBeingCreated .Repository.IsBroken)}} {{else if .Permission.IsAdmin}} {{end}}