summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/list.tmpl
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-05-30 17:26:51 +0200
committerGitHub <noreply@github.com>2023-05-30 15:26:51 +0000
commit1b115296d3f2f396eebcb40d79aea814d282edaf (patch)
tree6cb848392a0ddd785d12b1fa5dd569015fe9d221 /templates/repo/issue/list.tmpl
parentfaae819f5d8a662ec2df88205ab6d9b1871f1dd1 (diff)
downloadgitea-1b115296d3f2f396eebcb40d79aea814d282edaf.tar.gz
gitea-1b115296d3f2f396eebcb40d79aea814d282edaf.zip
Followup to pinned Issues (#24945)
This addressees some things from #24406 that came up after the PR was merged. Mostly from @delvh. --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'templates/repo/issue/list.tmpl')
-rw-r--r--templates/repo/issue/list.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl
index dab6652d21..05aa86fd79 100644
--- a/templates/repo/issue/list.tmpl
+++ b/templates/repo/issue/list.tmpl
@@ -6,7 +6,7 @@
{{if .PinnedIssues}}
<div id="issue-pins" {{if .IsRepoAdmin}}data-is-repo-admin{{end}}>
{{range .PinnedIssues}}
- <div class="pinned-issue-card gt-word-break" data-move-url="{{$.Link}}/pin_move" data-issue-id="{{.ID}}">
+ <div class="pinned-issue-card gt-word-break" data-move-url="{{$.Link}}/move_pin" data-issue-id="{{.ID}}">
{{if eq $.Project.CardType 1}}
<div class="card-attachment-images">
{{range (index $.issuesAttachmentMap .ID)}}
@@ -21,7 +21,7 @@
</div>
<a class="pinned-issue-title muted issue-title" href="{{.Link}}">{{.Title | RenderEmoji $.Context | RenderCodeBlock}}</a>
{{if $.IsRepoAdmin}}
- <a role="button" class="pinned-issue-unpin muted gt-df gt-ac" data-tooltip-content={{$.locale.Tr "repo.issues.unpin_issue"}} data-issue-id="{{.ID}}" data-unpin-url="{{$.Link}}/unpin/{{.ID}}">
+ <a role="button" class="pinned-issue-unpin muted gt-df gt-ac" data-tooltip-content={{$.locale.Tr "repo.issues.unpin_issue"}} data-issue-id="{{.ID}}" data-unpin-url="{{$.Link}}/unpin/{{.Index}}">
{{svg "octicon-x" 16}}
</a>
{{end}}