aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorDenys Konovalov <kontakt@denyskon.de>2024-01-15 21:38:13 +0100
committerGitHub <noreply@github.com>2024-01-15 22:38:13 +0200
commitd971dfbae1b6f5f63357fa387c59e2a7cf06100b (patch)
tree08b026d324f44d4f1409a7d3c245631bdfe4bd8e /templates/repo
parent885cc32b14584ee2d01009768895b7a776441504 (diff)
downloadgitea-d971dfbae1b6f5f63357fa387c59e2a7cf06100b.tar.gz
gitea-d971dfbae1b6f5f63357fa387c59e2a7cf06100b.zip
Fix links in issue card (#28806)
Fixes_ https://github.com/go-gitea/gitea/issues/23318#issuecomment-1611086747
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issue/card.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/issue/card.tmpl b/templates/repo/issue/card.tmpl
index 1863ba39d7..14d08fc0ef 100644
--- a/templates/repo/issue/card.tmpl
+++ b/templates/repo/issue/card.tmpl
@@ -33,7 +33,7 @@
</div>
{{if .MilestoneID}}
<div class="meta gt-my-2">
- <a class="milestone" href="{{$.Page.RepoLink}}/milestone/{{.MilestoneID}}">
+ <a class="milestone" href="{{.Repo.Link}}/milestone/{{.MilestoneID}}">
{{svg "octicon-milestone" 16 "gt-mr-2 gt-vm"}}
<span class="gt-vm">{{.Milestone.Name}}</span>
</a>
@@ -42,7 +42,7 @@
{{if $.Page.LinkedPRs}}
{{range index $.Page.LinkedPRs .ID}}
<div class="meta gt-my-2">
- <a href="{{$.Page.RepoLink}}/pulls/{{.Index}}">
+ <a href="{{$.Issue.Repo.Link}}/pulls/{{.Index}}">
<span class="gt-m-0 text {{if .PullRequest.HasMerged}}purple{{else if .IsClosed}}red{{else}}green{{end}}">{{svg "octicon-git-merge" 16 "gt-mr-2 gt-vm"}}</span>
<span class="gt-vm">{{.Title}} <span class="text light grey">#{{.Index}}</span></span>
</a>
@@ -61,7 +61,7 @@
{{if or .Labels .Assignees}}
<div class="extra content labels-list gt-p-0 gt-pt-2">
{{range .Labels}}
- <a target="_blank" href="{{$.Page.RepoLink}}/issues?labels={{.ID}}">{{RenderLabel ctx .}}</a>
+ <a target="_blank" href="{{$.Issue.Repo.Link}}/issues?labels={{.ID}}">{{RenderLabel ctx .}}</a>
{{end}}
<div class="right floated">
{{range .Assignees}}