diff options
author | Giteabot <teabot@gitea.io> | 2023-10-04 20:12:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 12:12:06 +0000 |
commit | 1ff6b7783ceda63fb8b8efa33f87f5a741b68706 (patch) | |
tree | 07f8a981d2a0b568fd3af0a6e57162eacf6087f3 /templates/repo | |
parent | 99e2071eebe95e67f640c2bfd47de41a0e91a17e (diff) | |
download | gitea-1ff6b7783ceda63fb8b8efa33f87f5a741b68706.tar.gz gitea-1ff6b7783ceda63fb8b8efa33f87f5a741b68706.zip |
Fix missing `ctx` in new_form.tmpl (#27434) (#27438)
Backport #27434 by @CaiCandong
Fix #27432
Regression of #27265
Co-authored-by: CaiCandong <50507092+CaiCandong@users.noreply.github.com>
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/issue/new_form.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index 6502a8d889..62b6b5ce6f 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -111,7 +111,7 @@ {{ctx.Locale.Tr "repo.issues.new.open_projects"}} </div> {{range .OpenProjects}} - <a class="item muted sidebar-item-link" data-id="{{.ID}}" data-href="{{.Link}}"> + <a class="item muted sidebar-item-link" data-id="{{.ID}}" data-href="{{.Link ctx}}"> {{svg .IconName 18 "gt-mr-3"}}{{.Title}} </a> {{end}} @@ -122,7 +122,7 @@ {{ctx.Locale.Tr "repo.issues.new.closed_projects"}} </div> {{range .ClosedProjects}} - <a class="item muted sidebar-item-link" data-id="{{.ID}}" data-href="{{.Link}}"> + <a class="item muted sidebar-item-link" data-id="{{.ID}}" data-href="{{.Link ctx}}"> {{svg .IconName 18 "gt-mr-3"}}{{.Title}} </a> {{end}} |