{{template "base/head" .}} {{ $n := len .TreeNames}} {{$l := Eval $n "-" 1}}
{{template "repo/header" .}}
{{template "base/alert" .}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} {{end}} {{if .Repository.IsArchived}}
{{.i18n.Tr "repo.archive.title"}}
{{end}} {{if .IsViewFile}} {{template "repo/view_file" .}} {{else if .IsBlame}} {{template "repo/blame" .}} {{else}} {{if eq $n 0}} {{template "repo/course_view_list" .}} {{else}} {{template "repo/view_list" .}} {{end}} {{end}}
{{template "base/footer" .}}