{{template "base/head" .}}
{{template "repo/header" .}}
{{template "base/alert" .}}
{{ $description := .Repository.DescriptionHTML $.Context}} {{if $description}}{{$description}}{{else if .IsRepositoryAdmin}}{{.i18n.Tr "repo.no_desc"}}{{end}} {{.Repository.Website}}
{{if .RepoSearchEnabled}} {{end}}
{{range .Topics}}{{.Name}}{{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{.i18n.Tr "repo.topic.manage_topics"}}{{end}}
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}} {{end}}
{{.i18n.Tr "repo.topic.count_prompt"}} {{.i18n.Tr "repo.topic.format_prompt"}}
{{if .Repository.IsArchived}}
{{.i18n.Tr "repo.archive.title"}}
{{end}} {{template "repo/sub_menu" .}}
{{template "repo/branch_dropdown" dict "root" .}} {{ $n := len .TreeNames}} {{ $l := Subtract $n 1}} {{if eq $n 0}} {{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}} {{end}} {{svg "octicon-file-moved" 15}} {{end}} {{if or .CanAddFile .CanUploadFile}} {{end}} {{if ne $n 0}} {{EllipsisString .Repository.Name 30}}{{range $i, $v := .TreeNames}}/{{if eq $i $l}}{{EllipsisString $v 30}}{{else}}{{$p := index $.Paths $i}}{{EllipsisString $v 30}}{{end}}{{end}} {{end}}
{{if eq $n 0}} {{if .Repository.IsTemplate}} {{end}} {{end}} {{if eq $n 0}} {{end}} {{if and (ne $n 0) (not .IsViewFile) (not .IsBlame) }} {{svg "octicon-history" 16 "mr-3"}}{{.i18n.Tr "repo.file_history"}} {{end}}
{{if .IsViewFile}} {{template "repo/view_file" .}} {{else if .IsBlame}} {{template "repo/blame" .}} {{else}} {{template "repo/view_list" .}} {{end}}
{{template "base/footer" .}}