aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/diff
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-11-05 14:04:26 +0800
committerGitHub <noreply@github.com>2024-11-05 14:04:26 +0800
commit4a469c8e1b3c1d153316aec9fd8cbdd3e1dd54e8 (patch)
tree3fc7eae5668299c7dbd5933cd14839bbccacefdd /templates/repo/diff
parentb068dbd40ee3b4dc7d18cdcf168f0c24cea234c0 (diff)
downloadgitea-4a469c8e1b3c1d153316aec9fd8cbdd3e1dd54e8.tar.gz
gitea-4a469c8e1b3c1d153316aec9fd8cbdd3e1dd54e8.zip
Refactor template ctx and render utils (#32422)
Clean up the templates
Diffstat (limited to 'templates/repo/diff')
-rw-r--r--templates/repo/diff/compare.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl
index 5ac6013ed5..28419a3462 100644
--- a/templates/repo/diff/compare.tmpl
+++ b/templates/repo/diff/compare.tmpl
@@ -187,7 +187,7 @@
<div class="ui segment flex-text-block tw-gap-4">
{{template "shared/issueicon" .}}
<div class="issue-title tw-break-anywhere">
- {{RenderIssueTitle $.Context .PullRequest.Issue.Title ($.Repository.ComposeMetas ctx) | RenderCodeBlock}}
+ {{ctx.RenderUtils.RenderIssueTitle .PullRequest.Issue.Title ($.Repository.ComposeMetas ctx) | RenderCodeBlock}}
<span class="index">#{{.PullRequest.Issue.Index}}</span>
</div>
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui compact button primary">