mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix commits page url (#2823)
* Fix commits page url * Check all view types
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
				
			|||||||
	<div class="ui two horizontal center link list">
 | 
						<div class="ui two horizontal center link list">
 | 
				
			||||||
		{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo)}}
 | 
							{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo)}}
 | 
				
			||||||
			<div class="item{{if .PageIsCommits}} active{{end}}">
 | 
								<div class="item{{if .PageIsCommits}} active{{end}}">
 | 
				
			||||||
				<a href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"><i class="octicon octicon-history"></i> <b>{{.CommitsCount}}</b> {{.i18n.Tr "repo.commits"}}</a>
 | 
									<a href="{{.RepoLink}}/commits{{if .IsViewBranch}}/branch{{else if .IsViewTag}}/tag{{else if .IsViewCommit}}/commit{{end}}/{{EscapePound .BranchName}}"><i class="octicon octicon-history"></i> <b>{{.CommitsCount}}</b> {{.i18n.Tr "repo.commits"}}</a>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
		{{end}}
 | 
							{{end}}
 | 
				
			||||||
		{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo) }}
 | 
							{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo) }}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user