diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-03-05 18:48:30 -0600 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-03-05 19:48:30 -0500 |
commit | 608781f8806ad810e13ac6dc479bf5eac7a40b96 (patch) | |
tree | d5b5cdb7ed7c39f2a531564c176e8f729f8c75af /templates | |
parent | 6460cff222280fba77fb166a3bce80a828deace3 (diff) | |
download | gitea-608781f8806ad810e13ac6dc479bf5eac7a40b96.tar.gz gitea-608781f8806ad810e13ac6dc479bf5eac7a40b96.zip |
Fix fork button (#6223)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/header.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 0e3f56616c..d340575353 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -29,7 +29,7 @@ </a> </div> {{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}} - <div class="ui labeled button {{if and (not $.CanSignedUserFork) ($.IsSigned)}}disabled{{end}}" tabindex="0"> + <div class="ui labeled button {{if and ($.IsSigned) (not $.CanSignedUserFork)}}disabled-repo-button{{end}}" tabindex="0"> <a class="ui compact basic 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> |