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