diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-01 18:51:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-01 18:51:50 +0800 |
commit | 2343feadd434561d86b1273792d88f609a782114 (patch) | |
tree | a3696eda975c487081b89232e59bf884f29a51aa /templates | |
parent | 31950cb26248ee006466e015340ade3d690581d9 (diff) | |
download | gitea-2343feadd434561d86b1273792d88f609a782114.tar.gz gitea-2343feadd434561d86b1273792d88f609a782114.zip |
resolved #310: hide fork to self (#323)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/pulls/fork.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/pulls/fork.tmpl b/templates/repo/pulls/fork.tmpl index 431f6df236..133cc92f7c 100644 --- a/templates/repo/pulls/fork.tmpl +++ b/templates/repo/pulls/fork.tmpl @@ -24,7 +24,7 @@ {{.SignedUser.ShortName 20}} </div> {{range .Orgs}} - {{if .IsOwnedBy $.SignedUser.ID}} + {{if and (.IsOwnedBy $.SignedUser.ID) (ne .ID $.ForkFromOwnerID)}} <div class="item" data-value="{{.ID}}"> <img class="ui mini image" src="{{.RelAvatarLink}}"> {{.ShortName 20}} |