THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

sugestion to use range .Branches (#7674)

d57973a804
master
6543 Lunny Xiao <xiaolunwen@gmail.com> 3 months ago
parent
commit
d974c139b4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      templates/repo/branch/list.tmpl

+ 2
- 2
templates/repo/branch/list.tmpl View File

@@ -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