{{template "base/alert" .}}
{{template "repo/code/recently_pushed_new_branches" .}}
{{if and false (not .HideRepoInfo) (not .IsBlame)}}
{{end}}
{{if .Repository.IsArchived}}
{{end}}
{{$n := len .TreeNames}}
{{$l := Eval $n "-" 1}}
{{if .IsSigned }}
{{if .IsViewFile}}
{{template "repo/view_file" .}}
{{else if .IsBlame}}
{{template "repo/blame" .}}
{{else}}{{/* IsViewDirectory */}}
{{- $description := .Repository.DescriptionHTML ctx -}}
{{if $description}}{{$description | RenderCodeBlock}}{{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 (not .IsSigned) (not .HideRepoInfo) (not .IsBlame)}}
Source files of this project at bottom of page. All source is under MIT license if no LICENSE file in list.
{{ 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}}
{{template "repo/sub_menu" .}}
{{template "repo/view_list" .}}
{{end}}
{{ end }}
{{ if .IsSigned }}
{{if .IsSigned }}
{{template "repo/sub_menu" .}}
{{template "repo/view_list" .}}
{{if .IsViewFile}}
{{template "repo/view_file" .}}
{{else if .IsBlame}}
{{template "repo/blame" .}}
{{else}}{{/* IsViewDirectory */}}
{{ end }}
{{ end }}
{{$isHomepage := (eq $n 0)}}