Skip to content

Commit 2ece9aa

Browse files
committed
merge main branch and follow @wxiaoguang's suggestion
1 parent d79bfb4 commit 2ece9aa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

templates/repo/issue/view_content/comments.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
<div class="detail">
330330
{{svg "octicon-plus"}}
331331
<span class="text grey muted-links">
332-
<a class="muted" href="{{.DependentIssue.Link}}">
332+
<a href="{{.DependentIssue.Link}}">
333333
{{if eq .DependentIssue.RepoID .Issue.RepoID}}
334334
#{{.DependentIssue.Index}} {{.DependentIssue.Title}}
335335
{{else}}
@@ -352,7 +352,7 @@
352352
<div class="detail">
353353
<span class="text grey muted-links">{{svg "octicon-trash"}}</span>
354354
<span class="text grey muted-links">
355-
<a class="muted" href="{{.DependentIssue.Link}}">
355+
<a href="{{.DependentIssue.Link}}">
356356
{{if eq .DependentIssue.RepoID .Issue.RepoID}}
357357
#{{.DependentIssue.Index}} {{.DependentIssue.Title}}
358358
{{else}}

templates/repo/view_file.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@
110110
</table>
111111
<div class="code-line-menu ui vertical pointing menu tippy-target">
112112
{{if $.Permission.CanRead $.UnitTypeIssues}}
113-
<a class="item ref-in-new-issue" href="{{.RepoLink}}/issues/new?body={{.Repository.Link}}{{printf "/src/commit/"}}{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}" rel="nofollow noindex">{{.locale.Tr "repo.issues.context.reference_issue"}}</a>
113+
{{/* FIXME: Here we use HTMLURL but not link, see https://github.com/go-gitea/gitea/pull/21986/files#r1096532186*/}}
114+
<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>
114115
{{end}}
115116
<a class="item view_git_blame" href="{{.Repository.Link}}/blame/commit/{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}">{{.locale.Tr "repo.view_git_blame"}}</a>
116117
<a class="item copy-line-permalink" data-url="{{.Repository.Link}}/src/commit/{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}">{{.locale.Tr "repo.file_copy_permalink"}}</a>

0 commit comments

Comments
 (0)