mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	Remove nonsense <a> for commit status check icon (#26287)
				
					
				
			We are using `<a>` for commit status check icon with no link. So it is clickable but this is no sense. I think we can convert this to `div`.  Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
				
			|||||||
{{/* Then the merge box will not be displayed because this page already contains enough information */}}
 | 
					{{/* Then the merge box will not be displayed because this page already contains enough information */}}
 | 
				
			||||||
{{else}}
 | 
					{{else}}
 | 
				
			||||||
<div class="timeline-item comment merge box">
 | 
					<div class="timeline-item comment merge box">
 | 
				
			||||||
	<a class="timeline-avatar text {{if .Issue.PullRequest.HasMerged}}purple
 | 
						<div class="timeline-avatar text {{if .Issue.PullRequest.HasMerged}}purple
 | 
				
			||||||
	{{- else if .Issue.IsClosed}}grey
 | 
						{{- else if .Issue.IsClosed}}grey
 | 
				
			||||||
	{{- else if .IsPullWorkInProgress}}grey
 | 
						{{- else if .IsPullWorkInProgress}}grey
 | 
				
			||||||
	{{- else if .IsFilesConflicted}}grey
 | 
						{{- else if .IsFilesConflicted}}grey
 | 
				
			||||||
@@ -18,7 +18,7 @@
 | 
				
			|||||||
	{{- else if .Issue.PullRequest.IsChecking}}yellow
 | 
						{{- else if .Issue.PullRequest.IsChecking}}yellow
 | 
				
			||||||
	{{- else if .Issue.PullRequest.IsEmpty}}grey
 | 
						{{- else if .Issue.PullRequest.IsEmpty}}grey
 | 
				
			||||||
	{{- else if .Issue.PullRequest.CanAutoMerge}}green
 | 
						{{- else if .Issue.PullRequest.CanAutoMerge}}green
 | 
				
			||||||
	{{- else}}red{{end}}">{{svg "octicon-git-merge" 40}}</a>
 | 
						{{- else}}red{{end}}">{{svg "octicon-git-merge" 40}}</div>
 | 
				
			||||||
	<div class="content">
 | 
						<div class="content">
 | 
				
			||||||
		{{template "repo/pulls/status" .}}
 | 
							{{template "repo/pulls/status" .}}
 | 
				
			||||||
		{{$showGeneralMergeForm := false}}
 | 
							{{$showGeneralMergeForm := false}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user