mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-15 18:08:23 -07:00
* backport issue showing portection symbol if needet at default branch
* sugestion to use range .Branches
d57973a804
This commit is contained in:
parent
0a9794a6bc
commit
9fbb898058
@ -13,10 +13,14 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
{{range .Branches}}
|
||||||
|
{{if eq .Name $.DefaultBranch}}
|
||||||
{{if .IsProtected}}
|
{{if .IsProtected}}
|
||||||
<i class="octicon octicon-shield"></i>
|
<i class="octicon octicon-shield"></i>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{.DefaultBranch}}
|
{{.Name}}
|
||||||
|
{{end}}
|
||||||
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -40,7 +44,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{range $branch := .Branches}}
|
{{range .Branches}}
|
||||||
{{if ne .Name $.DefaultBranch}}
|
{{if ne .Name $.DefaultBranch}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
Loading…
Reference in New Issue
Block a user