diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2020-06-03 10:30:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 09:30:34 +0100 |
commit | 3ea5d864b96970e681fd45531c568ffde268d007 (patch) | |
tree | b461728f3fdc4e1686032a3fea17ad240d2305b5 /templates | |
parent | 464b583c6c112c9718cac7e24471b47918786374 (diff) | |
download | gitea-3ea5d864b96970e681fd45531c568ffde268d007.tar.gz gitea-3ea5d864b96970e681fd45531c568ffde268d007.zip |
Fix message wrapping on PR commit list (#11616)
* Fix message wrapping on PR commit list
* Update templates/repo/commits_list_small.tmpl
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/commits_list_small.tmpl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/templates/repo/commits_list_small.tmpl b/templates/repo/commits_list_small.tmpl index 26b6aa211c..0703df12e9 100644 --- a/templates/repo/commits_list_small.tmpl +++ b/templates/repo/commits_list_small.tmpl @@ -47,10 +47,8 @@ {{end}} </span> - <span class="message-wrapper"> - {{ $commitLink:= printf "%s/%s/%s/commit/%s" AppSubUrl $.comment.Issue.PullRequest.BaseRepo.OwnerName $.comment.Issue.PullRequest.BaseRepo.Name .ID }} - <span class="mono commit-summary{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}}</span> - </span> + {{ $commitLink:= printf "%s/%s/%s/commit/%s" AppSubUrl $.comment.Issue.PullRequest.BaseRepo.OwnerName $.comment.Issue.PullRequest.BaseRepo.Name .ID }} + <span class="mono commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}}</span> {{if IsMultilineCommitMessage .Message}} <button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button> {{end}} |