From 23e8cff08cf4e7012f8fb640df8b1ee26a239a8d Mon Sep 17 00:00:00 2001 From: 6543 <24977596+6543@users.noreply.github.com> Date: Mon, 29 Jul 2019 07:00:43 +0200 Subject: [PATCH] hide delete/restor button on archived repos (#7658) close issue #7653 --- templates/repo/branch/list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 2b98881f60..7ddd6f1f7f 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -101,7 +101,7 @@ {{end}} - {{if and $.IsWriter (not $.IsMirror) (not .IsProtected)}} + {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}} {{if .IsDeleted}} {{else}}