{{template "base/alert" .}}
{{template "repo/code/recently_pushed_new_branches" .}}
{{if and (not .HideRepoInfo) (not .IsBlame)}}
{{end}}
{{if RepoFlagsEnabled}}
{{template "custom/repo_flag_banners" .}}
{{if .SignedUser.IsAdmin}}
{{template "repo/admin_flags" .}}
{{end}}
{{end}}
{{if .Repository.IsArchived}}
{{end}}
{{template "repo/sub_menu" .}}
{{$n := len .TreeNames}}
{{$l := Eval $n "-" 1}}
{{$isHomepage := (eq $n 0)}}
{{if .IsViewFile}}
{{template "repo/view_file" .}}
{{else if .IsBlame}}
{{template "repo/blame" .}}
{{else}}{{/* IsViewDirectory */}}
{{template "repo/view_list" .}}
{{end}}
{{$description := .Repository.DescriptionHTML $.Context}}
{{if $description}}{{$description | RenderCodeBlock}}{{else}}{{ctx.Locale.Tr "repo.no_desc"}}{{end}}
{{if .Repository.Website}}{{.Repository.Website}}{{end}}
{{/* it should match the code in issue-home.js */}}
{{range .Topics}}{{.Name}}{{end}}
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}}
{{end}}
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}
{{range .Topics}}
{{/* keep the same layout as Fomantic UI generated labels */}}
{{.Name}}{{svg "octicon-x" 16 "delete icon"}}
{{end}}