From aebdbd85fbf6a4092915f6917993b0af6a4aa446 Mon Sep 17 00:00:00 2001 From: Trevor Dixon Date: Wed, 14 Oct 2026 08:59:39 +0200 Subject: [PATCH] enhance(repo): allow custom content in issue and pull request sidebars (#39764) Add custom template support for issue sidebar. * Fix https://github.com/go-gitea/gitea/issues/39763 --------- Signed-off-by: wxiaoguang Co-authored-by: wxiaoguang --- templates/custom/extra_repo_issue_sidebar_top.tmpl | 0 templates/repo/issue/view_content/sidebar.tmpl | 1 + 2 files changed, 1 insertion(+) create mode 100644 templates/custom/extra_repo_issue_sidebar_top.tmpl diff --git a/templates/custom/extra_repo_issue_sidebar_top.tmpl b/templates/custom/extra_repo_issue_sidebar_top.tmpl new file mode 100644 index 00000000000..e69de29bb2d diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 71aceed63f5..9e65f9cfea4 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -1,4 +1,5 @@
+ {{template "custom/extra_repo_issue_sidebar_top" $}} {{template "repo/issue/branch_selector_field" $}} {{if .Issue.IsPull}}