소스 검색

Put if statement of grey merge commits on one line

Steven Oud 9 년 전
부모
커밋
1d3ec27cb7
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      templates/repo/commits_table.tmpl

+ 2 - 5
templates/repo/commits_table.tmpl

@@ -36,11 +36,8 @@
 							{{end}}
 							{{end}}
 						</td>
 						</td>
 
 
-						{{if gt .ParentCount 1}}
-						<td class="message collapsing has-emoji grey text">
-						{{else}}
-						<td class="message collapsing has-emoji">
-						{{end}}
+
+						<td class="message collapsing has-emoji {{if gt .ParentCount 1}} grey text {{end}}">
 							<a rel="nofollow" class="ui sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSha .ID.String}}</a>
 							<a rel="nofollow" class="ui sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSha .ID.String}}</a>
 							{{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}}
 							{{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}}
 						</td>
 						</td>