mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 08:21:11 +00:00 
			
		
		
		
	Use the active branch for the code tab (#3720)
This commit is contained in:
		
					parent
					
						
							
								1610296f54
							
						
					
				
			
			
				commit
				
					
						daf70d3a4e
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -48,7 +48,7 @@
 | 
				
			||||||
	<div class="ui tabs container">
 | 
						<div class="ui tabs container">
 | 
				
			||||||
		<div class="ui tabular stackable menu navbar">
 | 
							<div class="ui tabular stackable menu navbar">
 | 
				
			||||||
			{{if .Repository.UnitEnabled $.UnitTypeCode}}
 | 
								{{if .Repository.UnitEnabled $.UnitTypeCode}}
 | 
				
			||||||
			<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}">
 | 
								<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}{{if (ne .BranchName .Repository.DefaultBranch)}}/src/branch/{{.BranchName}}{{end}}">
 | 
				
			||||||
				<i class="octicon octicon-code"></i> {{.i18n.Tr "repo.code"}}
 | 
									<i class="octicon octicon-code"></i> {{.i18n.Tr "repo.code"}}
 | 
				
			||||||
			</a>
 | 
								</a>
 | 
				
			||||||
			{{end}}
 | 
								{{end}}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue