Skip to content

Commit

Permalink
hide delete/restor button on archived repos (#7658)
Browse files Browse the repository at this point in the history
close issue #7653
  • Loading branch information
6543 authored and lunny committed Jul 29, 2019
1 parent dd8a295 commit 23e8cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/branch/list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 23e8cff

Please sign in to comment.