aboutsummaryrefslogtreecommitdiffstats
path: root/templates/projects/view.tmpl
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-03-12 22:36:47 +0900
committerGitHub <noreply@github.com>2023-03-12 14:36:47 +0100
commita04eeb2a548d4fd2b63873fc2acff49c52e19723 (patch)
treee4536fc0c417db5e56e3d60f0dce384e1b299fb1 /templates/projects/view.tmpl
parente72290fd9aeb77a47311483d1d565e428ce40cd9 (diff)
downloadgitea-a04eeb2a548d4fd2b63873fc2acff49c52e19723.tar.gz
gitea-a04eeb2a548d4fd2b63873fc2acff49c52e19723.zip
Show edit/close/delete button on organization wide repositories (#23388)
A part of https://github.com/go-gitea/gitea/pull/22865
Diffstat (limited to 'templates/projects/view.tmpl')
-rw-r--r--templates/projects/view.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl
index 06192f630b..6867309510 100644
--- a/templates/projects/view.tmpl
+++ b/templates/projects/view.tmpl
@@ -43,7 +43,7 @@
<h2 class="project-title">{{$.Project.Title}}</h2>
<div class="content project-description">{{$.Project.RenderedContent|Str2html}}</div>
</div>
- {{if or $.CanWriteIssues $.CanWritePulls}}
+ {{if $.CanWriteProjects}}
<div class="column right aligned">
<div class="ui compact right small menu">
<a class="item" href="{{$.Link}}/edit?redirect=project" data-id={{$.Project.ID}} data-title={{$.Project.Title}}>
@@ -256,7 +256,7 @@
</div>
-{{if or .CanWriteIssues .CanWritePulls}}
+{{if .CanWriteProjects}}
<div class="ui small basic delete modal">
<div class="ui icon header">
{{svg "octicon-trash"}}