{{/* {{if .LatestCommit.Author}}{{TimeSince .LatestCommit.Author.When $.Lang}}{{end}} {{RenderCommitMessageLink $commit.Summary $.RepoLink (print $.RepoLink "/commit/" $commit.ID) $.Repository.ComposeMetas}} */}} {{ $collapseList := and .ReadmeExist (not .HasParentPath)}}

{{if $collapseList}}Contents of{{end}} {{ $n := len .TreeNames}} {{ $l := Subtract $n 1}} {{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}}

{{if .HasParentPath}} {{end}} {{range $item := .Files}} {{$entry := index $item 0}} {{$commit := index $item 1}} {{if $entry.IsSubModule}} {{else}} {{end}} {{end}}
{{svg "octicon-mail-reply" 16}} ..
{{svg "octicon-file-submodule" 16}} {{$refURL := $commit.RefURL AppUrl $.BranchLink}} {{if $refURL}} {{$entry.Name}} @ {{ShortSha $commit.RefID}} {{else}} {{$entry.Name}} @ {{ShortSha $commit.RefID}} {{end}} {{if $entry.IsDir}} {{$subJumpablePathName := $entry.GetSubJumpablePathName}} {{$subJumpablePath := SubJumpablePath $subJumpablePathName}} {{svg "octicon-file-directory" 16}} {{if eq (len $subJumpablePath) 2}} {{index $subJumpablePath 0}}{{index $subJumpablePath 1}} {{else}} {{index $subJumpablePath 0}} {{end}} {{else}} {{svg (printf "octicon-%s" (EntryIcon $entry)) 16}} {{$entry.Name}} {{end}} {{TimeSince $commit.Committer.When $.Lang}}
{{if .ReadmeExist}} {{template "repo/view_file" .}} {{end}}