diff options
author | Bwko <bouwko@gmail.com> | 2017-07-26 09:17:38 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-07-26 15:17:38 +0800 |
commit | 8f171210b99b2c6cecab45dcf23d69ee84bccc4f (patch) | |
tree | 7b0bf9b72a26d2f04fac0667676252f25661b458 /templates/repo | |
parent | 48898e5d0b9ed678b0373b28a5aefa8b5405d37f (diff) | |
download | gitea-8f171210b99b2c6cecab45dcf23d69ee84bccc4f.tar.gz gitea-8f171210b99b2c6cecab45dcf23d69ee84bccc4f.zip |
Revert "Add ability to fork your own repos (#761)" (#2193)
Diffstat (limited to 'templates/repo')
-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 ed90491309..db636eb9bd 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" href="{{AppSubUrl}}/repo/fork/{{.ID}}"> + <a class="ui compact 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}}> <i class="octicon octicon-repo-forked"></i>{{$.i18n.Tr "repo.fork"}} </a> <a class="ui basic label" href="{{.Link}}/forks"> |