Skip to content

Commit

Permalink
backport issue showing portection symbol if needet at default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jul 30, 2019
1 parent 0a9794a commit d57973a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions templates/repo/branch/list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
<tbody>
<tr>
<td>
{{if .IsProtected}}
<i class="octicon octicon-shield"></i>
{{range $branch := .Branches}}
{{if eq .Name $.DefaultBranch}}
{{if .IsProtected}}
<i class="octicon octicon-shield"></i>
{{end}}
{{.Name}}
{{end}}
{{end}}
{{.DefaultBranch}}
</td>
</tr>
</tbody>
Expand Down

0 comments on commit d57973a

Please sign in to comment.