From 6ed4626ed594f8b7f0328d45c174c1b14144862a Mon Sep 17 00:00:00 2001 From: Earl Warren <109468362+earl-warren@users.noreply.github.com> Date: Tue, 1 Aug 2023 18:54:54 +0200 Subject: 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 Co-authored-by: Giteabot --- templates/projects/list.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/projects') 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)}} @@ -72,7 +72,7 @@ {{template "base/paginate" .}} -{{if $.CanWriteProjects}} +{{if and $.CanWriteProjects (not $.Repository.IsArchived)}}