summaryrefslogtreecommitdiffstats
path: root/templates/projects/list.tmpl
diff options
context:
space:
mode:
authorEarl Warren <109468362+earl-warren@users.noreply.github.com>2023-08-01 18:54:54 +0200
committerGitHub <noreply@github.com>2023-08-01 16:54:54 +0000
commit6ed4626ed594f8b7f0328d45c174c1b14144862a (patch)
tree86f29a3228157f527a31c6526bff4bf58ab21183 /templates/projects/list.tmpl
parentab388deb0e52c058a19dbd844bdd890f7cf84d51 (diff)
downloadgitea-6ed4626ed594f8b7f0328d45c174c1b14144862a.tar.gz
gitea-6ed4626ed594f8b7f0328d45c174c1b14144862a.zip
Merge `templates/projects/list.tmpl` and `templates/repo/projects/list.tmpl` together (#26265)
(cherry picked from commit 473862a1d599382ca022482e2e044025872d240b) Refs: https://codeberg.org/forgejo/forgejo/pulls/1126 Co-authored-by: Louis Seubert <louis.seubert.ls@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/projects/list.tmpl')
-rw-r--r--templates/projects/list.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/projects/list.tmpl b/templates/projects/list.tmpl
index fc8bf60811..e59e279c00 100644
--- a/templates/projects/list.tmpl
+++ b/templates/projects/list.tmpl
@@ -1,4 +1,4 @@
-{{if .CanWriteProjects}}
+{{if and $.CanWriteProjects (not $.Repository.IsArchived)}}
<div class="gt-text-right">
<a class="ui small green button" href="{{$.Link}}/new">{{.locale.Tr "repo.projects.new"}}</a>
</div>
@@ -72,7 +72,7 @@
{{template "base/paginate" .}}
</div>
-{{if $.CanWriteProjects}}
+{{if and $.CanWriteProjects (not $.Repository.IsArchived)}}
<div class="ui g-modal-confirm delete modal">
<div class="header">
{{svg "octicon-trash"}}