summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author6543 <24977596+6543@users.noreply.github.com>2019-07-29 07:00:43 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-07-29 13:00:43 +0800
commit23e8cff08cf4e7012f8fb640df8b1ee26a239a8d (patch)
treecf82085206b175afa60f9614e535d7c94a1ad9b0 /templates
parentdd8a295efc79153d0853a331e9f274c55ce27bcf (diff)
downloadgitea-23e8cff08cf4e7012f8fb640df8b1ee26a239a8d.tar.gz
gitea-23e8cff08cf4e7012f8fb640df8b1ee26a239a8d.zip
hide delete/restor button on archived repos (#7658)
close issue #7653
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/branch/list.tmpl2
1 files changed, 1 insertions, 1 deletions
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 @@
</div>
</div>
{{end}}
- {{if and $.IsWriter (not $.IsMirror) (not .IsProtected)}}
+ {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}}
{{if .IsDeleted}}
<a class="ui basic jump button icon poping up undo-button" href data-url="{{$.Link}}/restore?branch_id={{.DeletedBranch.ID | urlquery}}&name={{.DeletedBranch.Name | urlquery}}" data-content="{{$.i18n.Tr "repo.branch.restore" (.Name | EscapePound)}}" data-variation="tiny inverted" data-position="top right"><i class="octicon octicon-reply text blue"></i></a>
{{else}}