Skip to content

Commit 9c33cbd

Browse files
authored
Fix no edit/close/delete button in org repo project view page (#24301)
Part of #23318.
1 parent a319da0 commit 9c33cbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/projects/view.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<h2 class="project-title">{{$.Project.Title}}</h2>
4848
<div class="content project-description">{{$.Project.RenderedContent|Str2html}}</div>
4949
</div>
50-
{{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}}
50+
{{if and $.CanWriteProjects (not $.Repository.IsArchived)}}
5151
<div class="column right aligned">
5252
<div class="ui compact right small menu">
5353
<a class="item" href="{{$.RepoLink}}/projects/{{.Project.ID}}/edit?redirect=project" data-id={{$.Project.ID}} data-title={{$.Project.Title}}>
@@ -277,7 +277,7 @@
277277

278278
</div>
279279

280-
{{if or .CanWriteIssues .CanWritePulls}}
280+
{{if .CanWriteProjects}}
281281
<div class="ui gitea-confirm-modal delete modal">
282282
<div class="header">
283283
{{svg "octicon-trash"}}

0 commit comments

Comments
 (0)