diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-02-08 00:08:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 00:08:44 +0800 |
commit | 2c6cc0b8c982b3d49a5b208f75e15b2269584312 (patch) | |
tree | 09746485be5f6c534082585f137c921d6a34ab75 /templates | |
parent | d5fa2e7510844ad092804b7c11bf6847f7c4e45d (diff) | |
download | gitea-2c6cc0b8c982b3d49a5b208f75e15b2269584312.tar.gz gitea-2c6cc0b8c982b3d49a5b208f75e15b2269584312.zip |
Fix links for the menus in the view file page (#22795)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/view_file.tmpl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 85ff0120b2..e92aeb0702 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -110,8 +110,7 @@ </table> <div class="code-line-menu ui vertical pointing menu tippy-target"> {{if $.Permission.CanRead $.UnitTypeIssues}} - {{/* FIXME: Here we use HTMLURL but not link, see https://github.com/go-gitea/gitea/pull/21986/files#r1096532186*/}} - <a class="item ref-in-new-issue" href="{{.RepoLink}}/issues/new?body={{.Repository.HTMLURL}}{{printf "/src/commit/"}}{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}" rel="nofollow noindex">{{.locale.Tr "repo.issues.context.reference_issue"}}</a> + <a class="item ref-in-new-issue" data-url-issue-new="{{.RepoLink}}/issues/new" data-url-param-body-link="{{.Repository.Link}}/src/commit/{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}" rel="nofollow noindex">{{.locale.Tr "repo.issues.context.reference_issue"}}</a> {{end}} <a class="item view_git_blame" href="{{.Repository.Link}}/blame/commit/{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}">{{.locale.Tr "repo.view_git_blame"}}</a> <a class="item copy-line-permalink" data-url="{{.Repository.Link}}/src/commit/{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}">{{.locale.Tr "repo.file_copy_permalink"}}</a> |