diff options
author | techknowlogick | 2019-05-06 15:05:04 -0400 |
---|---|---|
committer | Lauris BH | 2019-05-06 22:05:04 +0300 |
commit | 6d2f0e555e60812f0e61be1fe1ef1c5e38a3acee (patch) | |
tree | 47ed765d6373b96cff59bdd982ff546f190bfba7 | |
parent | 476ca67cd4abbb94acb995adb525cc5d596d9ab4 (diff) |
Don't post process commit summary in templates (#6868)
Backport #6842 credit to @mrsdizzie
-rw-r--r-- | templates/repo/commits_table.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/view_list.tmpl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 55c550ae9..576fc03a3 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -68,7 +68,7 @@ </a> </td> <td class="message collapsing"> - <span class="has-emoji{{if gt .ParentCount 1}} grey text{{end}}">{{RenderCommitMessage .Summary $.RepoLink $.Repository.ComposeMetas}}</span> + <span class="has-emoji{{if gt .ParentCount 1}} grey text{{end}}">{{.Summary}}</span> {{if IsMultilineCommitMessage .Message}} <button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button> <pre class="commit-body" style="display: none;">{{RenderCommitBody .Message $.RepoLink $.Repository.ComposeMetas}}</pre> diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 089221480..f4ef4e2e4 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -27,7 +27,7 @@ </div> {{end}} </a> - <span class="grey has-emoji">{{RenderCommitMessage .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas}} + <span class="grey has-emoji">{{.LatestCommit.Summary}} {{if IsMultilineCommitMessage .LatestCommit.Message}} <button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button> <pre class="commit-body" style="display: none;">{{RenderCommitBody .LatestCommit.Message $.RepoLink $.Repository.ComposeMetas}}</pre> @@ -79,7 +79,7 @@ </td> {{end}} <td class="message collapsing has-emoji"> - {{RenderCommitMessageLink $commit.Summary $.RepoLink (print $.RepoLink "/commit/" $commit.ID) $.Repository.ComposeMetas}} + <a href="{{$.RepoLink}}/commit/{{$commit.ID}}">{{$commit.Summary}}</a> </td> <td class="text grey right age">{{TimeSince $commit.Committer.When $.Lang}}</td> </tr> |