diff options
author | Fluf <36822577+flufmonster@users.noreply.github.com> | 2018-06-09 16:51:10 -0400 |
---|---|---|
committer | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-06-09 16:51:10 -0400 |
commit | 9033eaeec1a082bd03a726daaccb85cb64b364d1 (patch) | |
tree | 4c5c7d279e76878bb2859b5b14fb3dd0af442176 /templates | |
parent | ef0bc57ae7df50736534563d359ef9d0f2015c1d (diff) | |
download | gitea-9033eaeec1a082bd03a726daaccb85cb64b364d1.tar.gz gitea-9033eaeec1a082bd03a726daaccb85cb64b364d1.zip |
Only show "You cannot fork a repository you own" when needed (#4130)
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 6d1d9edf8c..6f54cb9f61 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -32,7 +32,7 @@ </div> {{if .CanBeForked}} <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}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" data-position="top center" data-variation="tiny"{{end}}> + <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}}> <i class="octicon octicon-repo-forked"></i>{{$.i18n.Tr "repo.fork"}} </a> <a class="ui basic label" href="{{.Link}}/forks"> |