mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Remove commit load branches and tags in wiki repo (#26304)
If click `load branches and tags`, you will get 500 error from backend, as it is a wiki repo.   Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		@@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					{{if not .PageIsWiki}}
 | 
				
			||||||
<div class="branch-and-tag-area" data-text-default-branch-tooltip="{{.locale.Tr "repo.commit.contained_in_default_branch"}}">
 | 
					<div class="branch-and-tag-area" data-text-default-branch-tooltip="{{.locale.Tr "repo.commit.contained_in_default_branch"}}">
 | 
				
			||||||
	<button class="ui button ellipsis-button load-branches-and-tags gt-mt-3" aria-expanded="false"
 | 
						<button class="ui button ellipsis-button load-branches-and-tags gt-mt-3" aria-expanded="false"
 | 
				
			||||||
		data-fetch-url="{{.RepoLink}}/commit/{{.CommitID}}/load-branches-and-tags"
 | 
							data-fetch-url="{{.RepoLink}}/commit/{{.CommitID}}/load-branches-and-tags"
 | 
				
			||||||
@@ -16,3 +17,4 @@
 | 
				
			|||||||
		</div>
 | 
							</div>
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					{{end}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user