mirror: does not allow create releases

This commit is contained in:
Unknwon 2017-02-23 13:09:26 -05:00
parent 5ec21d56ef
commit 7d80c5a722
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3

View File

@ -5,7 +5,7 @@
{{template "base/alert" .}}
<h2 class="ui header">
{{.i18n.Tr "repo.release.releases"}}
{{if .IsRepositoryWriter}}
{{if and .IsRepositoryWriter (not .Repository.IsMirror)}}
<div class="ui right">
<a class="ui small green button" href="{{$.RepoLink}}/releases/new">
{{.i18n.Tr "repo.release.new_release"}}