diff --git a/templates/repo/commits_list_small.tmpl b/templates/repo/commits_list_small.tmpl
index 7c34a8f09..40a9843c8 100644
--- a/templates/repo/commits_list_small.tmpl
+++ b/templates/repo/commits_list_small.tmpl
@@ -13,6 +13,8 @@
{{avatarByEmail $.root.Context .Author.Email .Author.Name}}
{{end}}
+ {{$commitLink:= printf "%s/commit/%s" $.comment.Issue.PullRequest.BaseRepo.Link (PathEscape .ID.String)}}
+
{{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses "root" $.root}}
{{$class := "ui sha label"}}
@@ -30,23 +32,14 @@
{{$class = (printf "%s%s" $class " isWarning")}}
{{end}}
{{end}}
- {{if $.comment.Issue.PullRequest.BaseRepo.Name}}
-
- {{else}}
-
- {{end}}
- {{ShortSha .ID.String}}
- {{if .Signature}}
- {{template "repo/shabox_badge" dict "root" $.root "verification" .Verification}}
- {{end}}
- {{if $.comment.Issue.PullRequest.BaseRepo.Name}}
-
- {{else}}
-
- {{end}}
+
+ {{ShortSha .ID.String}}
+ {{if .Signature}}
+ {{template "repo/shabox_badge" dict "root" $.root "verification" .Verification}}
+ {{end}}
+
- {{$commitLink:= printf "%s/commit/%s" $.comment.Issue.PullRequest.BaseRepo.Link (PathEscape .ID.String)}}
{{RenderCommitMessageLinkSubject $.root.Context .Message ($.comment.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.comment.Issue.PullRequest.BaseRepo.ComposeMetas}}
{{if IsMultilineCommitMessage .Message}}