mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 08:21:11 +00:00 
			
		
		
		
	Show more settings for empty repositories (#29130)
Shows more settings for empty repositories (Fixes #29060) (cherry picked from commit 28db539d9c0fa0b7c9411724d8b4bf6f371651a0)
This commit is contained in:
		
					parent
					
						
							
								f7491db1c0
							
						
					
				
			
			
				commit
				
					
						b03af9efb2
					
				
			
		
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -29,10 +29,12 @@
 | 
				
			||||||
				{{ctx.Locale.Tr "repo.settings.hooks"}}
 | 
									{{ctx.Locale.Tr "repo.settings.hooks"}}
 | 
				
			||||||
			</a>
 | 
								</a>
 | 
				
			||||||
		{{end}}
 | 
							{{end}}
 | 
				
			||||||
		{{if and (.Repository.UnitEnabled $.Context $.UnitTypeCode) (not .Repository.IsEmpty)}}
 | 
							{{if .Repository.UnitEnabled $.Context $.UnitTypeCode}}
 | 
				
			||||||
 | 
								{{if not .Repository.IsEmpty}}
 | 
				
			||||||
				<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
 | 
									<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
 | 
				
			||||||
					{{ctx.Locale.Tr "repo.settings.branches"}}
 | 
										{{ctx.Locale.Tr "repo.settings.branches"}}
 | 
				
			||||||
				</a>
 | 
									</a>
 | 
				
			||||||
 | 
								{{end}}
 | 
				
			||||||
			<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
 | 
								<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
 | 
				
			||||||
				{{ctx.Locale.Tr "repo.settings.tags"}}
 | 
									{{ctx.Locale.Tr "repo.settings.tags"}}
 | 
				
			||||||
			</a>
 | 
								</a>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue