Skip to content

Commit 89297c9

Browse files
authored
Fix no edit/close/delete button in org repo project view page (#24349)
Backport #24301
1 parent d2328c4 commit 89297c9

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}}>
@@ -267,7 +267,7 @@
267267

268268
</div>
269269

270-
{{if or .CanWriteIssues .CanWritePulls}}
270+
{{if .CanWriteProjects}}
271271
<div class="ui small basic delete modal">
272272
<div class="ui icon header">
273273
{{svg "octicon-trash"}}

0 commit comments

Comments
 (0)