sugestion to use range .Branches (#7674)

d57973a804
tokarchuk/v1.17
6543 5 years ago committed by Lunny Xiao
parent e7d4895732
commit d974c139b4
  1. 4
      templates/repo/branch/list.tmpl

@ -13,7 +13,7 @@
<tbody>
<tr>
<td>
{{range $branch := .Branches}}
{{range .Branches}}
{{if eq .Name $.DefaultBranch}}
{{if .IsProtected}}
<i class="octicon octicon-shield"></i>
@ -44,7 +44,7 @@
<div class="ui attached table segment">
<table class="ui very basic striped fixed table single line">
<tbody>
{{range $branch := .Branches}}
{{range .Branches}}
{{if ne .Name $.DefaultBranch}}
<tr>
<td class="six wide">

Loading…
Cancel
Save