Skip to content

Commit 195cb4f

Browse files
committed
Provide links in commit summaries in commits table/view list
Signed-off-by: Gary Kim <[email protected]>
1 parent dd8a295 commit 195cb4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/repo/commits_table.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
</td>
7272
<td class="message">
7373
<span class="message-wrapper">
74-
<span class="commit-summary has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{.Summary}}</span>
74+
<span class="commit-summary has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessage .Message $.RepoLink $.Repository.ComposeMetas}}</span>
7575
{{if IsMultilineCommitMessage .Message}}
7676
<button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button>
7777
<pre class="commit-body" style="display: none;">{{RenderCommitBody .Message $.RepoLink $.Repository.ComposeMetas}}</pre>

templates/repo/view_list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
{{end}}
2929
</a>
3030
{{template "repo/commit_status" .LatestCommitStatus}}
31-
<span class="grey has-emoji commit-summary" title="{{.LatestCommit.Summary}}">{{.LatestCommit.Summary}}
31+
<span class="grey has-emoji commit-summary" title="{{.LatestCommit.Summary}}">{{RenderCommitMessage .LatestCommit.Message $.RepoLink $.Repository.ComposeMetas}}
3232
{{if IsMultilineCommitMessage .LatestCommit.Message}}
3333
<button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button>
3434
<pre class="commit-body" style="display: none;">{{RenderCommitBody .LatestCommit.Message $.RepoLink $.Repository.ComposeMetas}}</pre>

0 commit comments

Comments
 (0)