diff options
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/commits_table.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/diff.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/view_list.tmpl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index bd3777b46e..4c8141ab17 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -32,7 +32,7 @@ {{end}} </td> <td class="sha"><a rel="nofollow" class="label label-green" href="{{AppSubUrl}}/{{$username}}/{{$reponame}}/commit/{{.Id}} ">{{SubStr .Id.String 0 10}} </a></td> - <td class="message"><span class="text-truncate">{{Str2html .Summary}}</span></td> + <td class="message"><span class="text-truncate">{{RenderCommitMessage .Summary $.RepoLink}}</span></td> <td class="date">{{TimeSince .Author.When $.Lang}}</td> </tr> {{end}} diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 225175e8d1..8045351600 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -17,7 +17,7 @@ <div class="panel panel-info panel-radius diff-head-box"> <div class="panel-header"> <a class="pull-right btn btn-blue btn-header btn-medium btn-radius" rel="nofollow" href="{{.SourcePath}}">{{.i18n.Tr "repo.diff.browse_source"}}</a> - <h4 class="commit-message">{{Str2html .Commit.Message}}</h4> + <h4 class="commit-message">{{RenderCommitMessage .Commit.Message $.RepoLink}}</h4> </div> <div class="panel-body"> <span class="pull-right"> diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index fed91effa7..7bb9ffef7f 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -53,7 +53,7 @@ <a rel="nofollow" class="label label-green" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}} ">{{SubStr $commit.Id.String 0 10}} </a> </td> <td class="message"> - <span class="text-truncate">{{Str2html $commit.Summary}}</span> + <span class="text-truncate">{{RenderCommitMessage $commit.Summary $.RepoLink}}</span> </td> <td class="age">{{TimeSince $commit.Committer.When $.Lang}}</td> </tr> |