summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-08-04 02:58:41 +0900
committerGitHub <noreply@github.com>2023-08-03 19:58:41 +0200
commitd74c2228e3f93de502aa37095a00421ca67c4ca9 (patch)
tree72e08f37b6f9e7fc112e92825e4e639443670be4 /templates/repo/issue
parent0827fbd49c5cafe09aa58cc32d9794e54602430a (diff)
downloadgitea-d74c2228e3f93de502aa37095a00421ca67c4ca9.tar.gz
gitea-d74c2228e3f93de502aa37095a00421ca67c4ca9.zip
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`. ![image](https://github.com/go-gitea/gitea/assets/18380374/23db1a11-b0c7-4444-bfa6-fe68aeb1c682) Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/repo/issue')
-rw-r--r--templates/repo/issue/view_content/pull.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl
index 214d77a12d..a2e727c40a 100644
--- a/templates/repo/issue/view_content/pull.tmpl
+++ b/templates/repo/issue/view_content/pull.tmpl
@@ -2,7 +2,7 @@
{{/* Then the merge box will not be displayed because this page already contains enough information */}}
{{else}}
<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 .IsPullWorkInProgress}}grey
{{- else if .IsFilesConflicted}}grey
@@ -18,7 +18,7 @@
{{- else if .Issue.PullRequest.IsChecking}}yellow
{{- else if .Issue.PullRequest.IsEmpty}}grey
{{- 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">
{{template "repo/pulls/status" .}}
{{$showGeneralMergeForm := false}}