sugestion to use range .Branches (#7674)

d57973a804
This commit is contained in:
6543 2019-07-30 17:02:58 +02:00 committed by Lunny Xiao
parent e7d4895732
commit d974c139b4

View file

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