{{template "repo/header" .}}
{{template "base/alert" .}} {{if and (not .HideRepoInfo) (not .IsBlame)}}
{{$description := .Repository.DescriptionHTML $.Context}} {{if $description}}{{$description}}{{else if .IsRepositoryAdmin}}{{.locale.Tr "repo.no_desc"}}{{end}} {{.Repository.Website}}
{{if .RepoSearchEnabled}} {{end}}
{{range .Topics}}{{.Name}}{{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{.locale.Tr "repo.topic.manage_topics"}}{{end}}
{{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}
{{end}}
{{.locale.Tr "repo.topic.count_prompt"}} {{.locale.Tr "repo.topic.format_prompt"}}
{{if .Repository.IsArchived}}
{{.locale.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}} {{.locale.Tr "repo.find_file.go_to_file"}} {{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}}
{{template "repo/clone_buttons" .}} {{template "repo/clone_script" .}}{{/* the script will update `.js-clone-url` and related elements */}}
{{template "repo/cite/cite_modal" .}} {{end}} {{if and (ne $n 0) (not .IsViewFile) (not .IsBlame)}} {{svg "octicon-history" 16 "gt-mr-3"}}{{.locale.Tr "repo.file_history"}} {{end}}
{{if .IsViewFile}} {{template "repo/view_file" .}} {{else if .IsBlame}} {{template "repo/blame" .}} {{else}} {{template "repo/view_list" .}} {{end}}