From 9c33cbd3441fc866c3056d53b62c5420588a538a Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Mon, 24 Apr 2023 17:51:44 +0900 Subject: [PATCH] Fix no edit/close/delete button in org repo project view page (#24301) Part of #23318. --- templates/repo/projects/view.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl index cff78df70..df880591b 100644 --- a/templates/repo/projects/view.tmpl +++ b/templates/repo/projects/view.tmpl @@ -47,7 +47,7 @@

{{$.Project.Title}}

{{$.Project.RenderedContent|Str2html}}
- {{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}} + {{if and $.CanWriteProjects (not $.Repository.IsArchived)}}
-{{if or .CanWriteIssues .CanWritePulls}} +{{if .CanWriteProjects}}