diff options
author | 6543 <24977596+6543@users.noreply.github.com> | 2019-07-30 17:02:58 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-07-30 23:02:58 +0800 |
commit | d974c139b4a87a86254b3e4660b131152923f083 (patch) | |
tree | 1fb7f5c4c7246f16d91cb7a178dcb020344a5053 /templates | |
parent | e7d4895732f22b523bd9e65a017c68636fb93002 (diff) | |
download | gitea-d974c139b4a87a86254b3e4660b131152923f083.tar.gz gitea-d974c139b4a87a86254b3e4660b131152923f083.zip |
sugestion to use range .Branches (#7674)
https://github.com/go-gitea/gitea/pull/7668/files/d57973a8041a741fdb7e77bc6ab18431bbf95ba4
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/branch/list.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 7ddd6f1f7f..370e323960 100644 --- a/templates/repo/branch/list.tmpl +++ b/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"> |