From 852876a982584ebb62042ef80afd4ddb46893de4 Mon Sep 17 00:00:00 2001 From: Gary Kim Date: Tue, 20 Aug 2019 12:40:06 +0000 Subject: [PATCH] Provide links in commit summaries in commits table/view list (#7659) * Provide links in commit summaries in commits table/view list Signed-off-by: Gary Kim * Check that hashes are commits before making them links Signed-off-by: Gary Kim * Revert "Check that hashes are commits before making them links" This reverts commit a88564b8bc9872d4bf11062a4ebcb2f42b702200. * Add Commit Message Links to Files List Signed-off-by: Gary Kim --- templates/repo/commits_table.tmpl | 2 +- templates/repo/view_list.tmpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 7ea854103c..6561c0f258 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -71,7 +71,7 @@ - {{.Summary}} + {{RenderCommitMessage .Message $.RepoLink $.Repository.ComposeMetas}} {{if IsMultilineCommitMessage .Message}} diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index bb22f47436..28dcd2721c 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -28,12 +28,12 @@ {{end}} {{template "repo/commit_status" .LatestCommitStatus}} - {{.LatestCommit.Summary}} + {{RenderCommitMessage .LatestCommit.Message $.RepoLink $.Repository.ComposeMetas}} {{if IsMultilineCommitMessage .LatestCommit.Message}} {{end}} - + {{if .LatestCommit.Author}}{{TimeSince .LatestCommit.Author.When $.Lang}}{{end}} @@ -83,7 +83,7 @@ {{end}} - {{$commit.Summary}} + {{RenderCommitMessageLink $commit.Message $.RepoLink (Printf "%s/commit/%s" $.RepoLink $commit.ID) $.Repository.ComposeMetas}} {{TimeSince $commit.Committer.When $.Lang}}