|
|
@@ -32,7 +32,7 @@ |
|
|
|
</div> |
|
|
|
{{if and (not .IsBare) ($.Permission.CanRead $.UnitTypeCode)}} |
|
|
|
<div class="ui compact labeled button" tabindex="0"> |
|
|
|
<a class="ui compact button {{if not $.CanSignedUserFork}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" data-position="top center" data-variation="tiny"{{end}}> |
|
|
|
<a class="ui compact button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny"> |
|
|
|
<i class="octicon octicon-repo-forked"></i>{{$.i18n.Tr "repo.fork"}} |
|
|
|
</a> |
|
|
|
<a class="ui basic label" href="{{.Link}}/forks"> |