From ec8a98d28241b700bb1e7faa373caa1c29f412e3 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 21 Jun 2022 08:37:14 -0400 Subject: [PATCH] RF: in list of files, link to tree (not commit) for submodules While navigating files it makes more sense to jump to that specific state of the tree instead of specific commit diff. With such trivial change we should be able to achive that. In other similar uses of /commit/ I left them as is since there it does makes more sense to jump to diff. Inspired by @aksoo --- templates/repo/view_list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index ca03522fd..c6c5e232b 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -9,7 +9,7 @@ {{.LatestCommit.Author.Name}} {{end}} - {{ShortSHA1 .LatestCommit.ID.String}} + {{ShortSHA1 .LatestCommit.ID.String}} {{RenderCommitMessage false .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas | Str2HTML}}