Skip to content

Commit d57973a

Browse files
committed
backport issue showing portection symbol if needet at default branch
1 parent 0a9794a commit d57973a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

templates/repo/branch/list.tmpl

+7-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@
1313
<tbody>
1414
<tr>
1515
<td>
16-
{{if .IsProtected}}
17-
<i class="octicon octicon-shield"></i>
16+
{{range $branch := .Branches}}
17+
{{if eq .Name $.DefaultBranch}}
18+
{{if .IsProtected}}
19+
<i class="octicon octicon-shield"></i>
20+
{{end}}
21+
{{.Name}}
22+
{{end}}
1823
{{end}}
19-
{{.DefaultBranch}}
2024
</td>
2125
</tr>
2226
</tbody>

0 commit comments

Comments
 (0)