소스 검색

Show protection symbol if needed on default branch (#7660) (#7668)

* backport issue showing portection symbol if needet at default branch

* sugestion to use range .Branches
d57973a804
tags/v1.9.0
6543 4 년 전
부모
커밋
9fbb898058
1개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 8
    4
      templates/repo/branch/list.tmpl

+ 8
- 4
templates/repo/branch/list.tmpl 파일 보기

@@ -13,10 +13,14 @@
<tbody>
<tr>
<td>
{{if .IsProtected}}
<i class="octicon octicon-shield"></i>
{{range .Branches}}
{{if eq .Name $.DefaultBranch}}
{{if .IsProtected}}
<i class="octicon octicon-shield"></i>
{{end}}
{{.Name}}
{{end}}
{{end}}
{{.DefaultBranch}}
</td>
</tr>
</tbody>
@@ -40,7 +44,7 @@
</tr>
</thead>
<tbody>
{{range $branch := .Branches}}
{{range .Branches}}
{{if ne .Name $.DefaultBranch}}
<tr>
<td>

Loading…
취소
저장