diff options
author | Unknwon <u@gogs.io> | 2015-12-04 21:30:33 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-04 21:30:33 -0500 |
commit | e538ff27704cddb1a99efc1a6be19e134f97355f (patch) | |
tree | 88f93b17d47aeb3ac4dd0692f5c5b613ee38b28b /templates/repo/home.tmpl | |
parent | 76d4b9288b60ed6c037257415a570225764ff0a0 (diff) | |
download | gitea-e538ff27704cddb1a99efc1a6be19e134f97355f.tar.gz gitea-e538ff27704cddb1a99efc1a6be19e134f97355f.zip |
fix #1829 and fix #890
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index b733583b0a..6a3d0f1295 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -7,7 +7,7 @@ <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a> </p> <div class="ui secondary menu"> - {{if and .IsRepositoryAdmin .Repository.BaseRepo}} + {{if .CanPullRequest}} <div class="fitted item"> {{ $baseRepo := .Repository.BaseRepo}} <a href="{{AppSubUrl}}/{{$baseRepo.Owner.Name}}/{{$baseRepo.Name}}/compare/{{$.BaseDefaultBranch}}...{{$.Owner.Name}}:{{$.BranchName}}"> |