Skip to content

Commit 23e8cff

Browse files
6543lunny
authored andcommitted
hide delete/restor button on archived repos (#7658)
close issue #7653
1 parent dd8a295 commit 23e8cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/branch/list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
</div>
102102
</div>
103103
{{end}}
104-
{{if and $.IsWriter (not $.IsMirror) (not .IsProtected)}}
104+
{{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}}
105105
{{if .IsDeleted}}
106106
<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>
107107
{{else}}

0 commit comments

Comments
 (0)