diff options
author | Mike L <cl.jeremy@qq.com> | 2021-03-14 15:48:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 14:48:28 +0000 |
commit | 9566c9f0c766811883b7b4220594e78e100eca1d (patch) | |
tree | 7ec29f916601d2c6141f5f5d4afa68eaec998d5d /templates | |
parent | f5aaa74b90c36249ebab5a9ba380c28fef92e003 (diff) | |
download | gitea-9566c9f0c766811883b7b4220594e78e100eca1d.tar.gz gitea-9566c9f0c766811883b7b4220594e78e100eca1d.zip |
Re-enable listing of forks when logged out (#14992)
* Re-enable listing of forks when logged out
* Further improvements on repo button logic
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/header.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index f9df406274..71963d698c 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -83,8 +83,8 @@ </div> </form> {{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}} - <div class="ui labeled button {{if not $.IsSigned}} disabled{{end}}" tabindex="0"> - <a class="ui compact small 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" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny"> + <div class="ui labeled button{{if not $.CanSignedUserFork}} poping up disabled{{end}}"{{if and (not $.CanSignedUserFork) $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{else if not $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_guest_user"}}"{{end}} data-position="top center" data-variation="tiny" tabindex="0"> + <a class="ui compact small basic button"{{if $.CanSignedUserFork}} href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{end}}> {{svg "octicon-repo-forked"}}{{$.i18n.Tr "repo.fork"}} </a> <a class="ui basic label" href="{{.Link}}/forks"> |