From 6bd4925753665d87bef393e869cc24f2f11cc1f5 Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Thu, 25 Apr 2024 14:56:00 +0200 Subject: [PATCH] Split allow edits checkbox --- templates/repo/issue/view_content/sidebar.tmpl | 14 +------------- .../sidebar/pull_maintainer_edits.tmpl | 13 +++++++++++++ 2 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 templates/repo/issue/view_content/sidebar/pull_maintainer_edits.tmpl diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index b6fe04be63..5740b79adb 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -53,18 +53,6 @@ {{end}} {{if and .Issue.IsPull .IsIssuePoster (not .Issue.IsClosed) .Issue.PullRequest.HeadRepo}} - {{if and (not (eq .Issue.PullRequest.HeadRepo.FullName .Issue.PullRequest.BaseRepo.FullName)) .CanWriteToHeadRepo}} -
-
-
- - -
-
- {{end}} + {{template "repo/issue/view_content/sidebar/pull_maintainer_edits" .}} {{end}} diff --git a/templates/repo/issue/view_content/sidebar/pull_maintainer_edits.tmpl b/templates/repo/issue/view_content/sidebar/pull_maintainer_edits.tmpl new file mode 100644 index 0000000000..c6a87adde4 --- /dev/null +++ b/templates/repo/issue/view_content/sidebar/pull_maintainer_edits.tmpl @@ -0,0 +1,13 @@ +{{if and (not (eq .Issue.PullRequest.HeadRepo.FullName .Issue.PullRequest.BaseRepo.FullName)) .CanWriteToHeadRepo}} +
+
+
+ + +
+
+{{end}}