Skip to content

Commit

Permalink
Fix no edit/close/delete button in org repo project view page (#24301)
Browse files Browse the repository at this point in the history
Part of #23318.
  • Loading branch information
yp05327 committed Apr 24, 2023
1 parent a319da0 commit 9c33cbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/repo/projects/view.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}>
Expand Down Expand Up @@ -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"}}
Expand Down

0 comments on commit 9c33cbd

Please sign in to comment.