Browse Source

Grey out merge commits

Steven Oud 9 years ago
parent
commit
a0cd59bd0e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      templates/repo/commits_table.tmpl

+ 5 - 0
templates/repo/commits_table.tmpl

@@ -35,7 +35,12 @@
 								<img class="ui avatar image" src="{{AvatarLink .Author.Email}}" alt=""/>&nbsp;&nbsp;{{.Author.Name}}
 							{{end}}
 						</td>
+
+						{{if gt .ParentCount 1}}
+						<td class="message collapsing has-emoji grey text">
+						{{else}}
 						<td class="message collapsing has-emoji">
+						{{end}}
 							<a rel="nofollow" class="ui sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSha .ID.String}}</a>
 							{{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}}
 						</td>