We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd8a295 commit 23e8cffCopy full SHA for 23e8cff
templates/repo/branch/list.tmpl
@@ -101,7 +101,7 @@
101
</div>
102
103
{{end}}
104
- {{if and $.IsWriter (not $.IsMirror) (not .IsProtected)}}
+ {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}}
105
{{if .IsDeleted}}
106
<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>
107
{{else}}
0 commit comments