{{/* use grid layout, still use the old ID because there are many other CSS styles depending on this ID */}}
{{template "repo/latest_commit" .}}
{{if and .LatestCommit .LatestCommit.Committer}} {{- ShortSha .LatestCommit.ID.String -}} · {{DateUtils.TimeSince .LatestCommit.Committer.When}} {{end}}
{{if and (not .TreeNames) (.Permission.CanRead ctx.Consts.RepoUnitTypeCode) (not .IsEmptyRepo)}} {{svg "octicon-history" 16}} {{ctx.Locale.PrettyNumber .CommitsCount}} {{ctx.Locale.TrN .CommitsCount "repo.commit" "repo.commits"}} {{end}} {{if and .TreeNames (not .IsViewFile) (not .IsBlame)}}{{/* IsViewDirectory (not home), TODO: split the templates, avoid using "if" tricks */}} {{svg "octicon-history" 16}}{{ctx.Locale.Tr "repo.file_history"}} {{end}}
{{$.FileIconPoolHTML}} {{if .HasParentPath}} {{index $.FileIcons ".."}} .. {{end}} {{range $item := .Files}}
{{$entry := $item.Entry}} {{$commit := $item.Commit}} {{$submoduleFile := $item.SubmoduleFile}}
{{if $commit}} {{$commitLink := printf "%s/commit/%s" $.RepoLink (PathEscape $commit.ID.String)}} {{ctx.RenderUtils.RenderCommitMessageLinkSubject $commit.Message $commitLink $.Repository}} {{else}} … {{/* will be loaded again by LastCommitLoaderURL */}} {{end}}
{{if $commit}}{{DateUtils.TimeSince $commit.Committer.When}}{{end}}
{{end}}