repo: able to fork own repository (#1791)

pull/4155/head
Unknwon 2017-02-18 23:04:11 -05:00
parent c3f52ab52d
commit 50a7c3c20d
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
2 changed files with 1 additions and 2 deletions

View File

@ -398,7 +398,6 @@ migrate.failed = Migration failed: %v
mirror_from = mirror of
forked_from = forked from
fork_from_self = You cannot fork a repository you already own!
copy_link = Copy
copy_link_success = Copied!
copy_link_error = Press ⌘-C or Ctrl-C to copy

View File

@ -32,7 +32,7 @@
</div>
{{if .CanBeForked}}
<div class="ui labeled button" tabindex="0">
<a class="ui button {{if eq .OwnerID $.SignedUserID}}poping up{{end}}" {{if not (eq .OwnerID $.SignedUserID)}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" data-position="top center" data-variation="tiny"{{end}}>
<a class="ui button {{if eq .OwnerID $.SignedUserID}}poping up{{end}}" href="{{AppSubUrl}}/repo/fork/{{.ID}}">
<i class="octicon octicon-repo-forked"></i>{{$.i18n.Tr "repo.fork"}}
</a>
<a class="ui basic label" href="{{.Link}}/forks">