Add ability to fork your own repos (#761)

This commit is contained in:
Bwko 2017-01-26 15:44:37 +01:00 committed by Lunny Xiao
parent d1b5498cc0
commit e08421017c
23 changed files with 1 additions and 28 deletions

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" 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">