diff options
author | yp05327 <576951401@qq.com> | 2023-04-24 17:51:44 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 04:51:44 -0400 |
commit | 9c33cbd3441fc866c3056d53b62c5420588a538a (patch) | |
tree | a12a4e4ee00a1f031bda84ef3cd3f641eb1e188a /templates/repo | |
parent | a319da0688763df662f5ef71684c8e9101803dbb (diff) | |
download | gitea-9c33cbd3441fc866c3056d53b62c5420588a538a.tar.gz gitea-9c33cbd3441fc866c3056d53b62c5420588a538a.zip |
Fix no edit/close/delete button in org repo project view page (#24301)
Part of #23318.
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/projects/view.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl index cff78df70b..df880591b7 100644 --- a/templates/repo/projects/view.tmpl +++ b/templates/repo/projects/view.tmpl @@ -47,7 +47,7 @@ <h2 class="project-title">{{$.Project.Title}}</h2> <div class="content project-description">{{$.Project.RenderedContent|Str2html}}</div> </div> - {{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}} + {{if and $.CanWriteProjects (not $.Repository.IsArchived)}} <div class="column right aligned"> <div class="ui compact right small menu"> <a class="item" href="{{$.RepoLink}}/projects/{{.Project.ID}}/edit?redirect=project" data-id={{$.Project.ID}} data-title={{$.Project.Title}}> @@ -277,7 +277,7 @@ </div> -{{if or .CanWriteIssues .CanWritePulls}} +{{if .CanWriteProjects}} <div class="ui gitea-confirm-modal delete modal"> <div class="header"> {{svg "octicon-trash"}} |