diff options
Diffstat (limited to 'templates/repo/branches/all.tmpl')
-rw-r--r-- | templates/repo/branches/all.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/branches/all.tmpl b/templates/repo/branches/all.tmpl index f962884d..d4ea3076 100644 --- a/templates/repo/branches/all.tmpl +++ b/templates/repo/branches/all.tmpl @@ -17,10 +17,10 @@ <span class="ui text light grey">{{$.i18n.Tr "repo.branches.updated_by" $timeSince .Commit.Committer.Name | Safe}}</span> </div> <div class="ui four wide column"> - {{if and (eq $.BranchName .Name) $.IsRepositoryWriter}} + {{if and (and (eq $.BranchName .Name) $.IsRepositoryAdmin) (not $.Repository.IsMirror)}} <a class="ui basic blue button" href="{{$.RepoLink}}/settings/branches">{{$.i18n.Tr "repo.branches.change_default_branch"}}</a> {{else if and $.IsRepositoryWriter $.AllowPullRequest}} - <a class="ui basic button" href="{{$.RepoLink}}/compare/{{$.DefaultBranch.Name}}...{{.Name}}"><i class="octicon octicon-git-pull-request"></i> {{$.i18n.Tr "repo.pulls.new"}}</a> + <a class="ui basic button" href="{{$.RepoLink}}/compare/{{$.BranchName}}...{{.Name}}"><i class="octicon octicon-git-pull-request"></i> {{$.i18n.Tr "repo.pulls.new"}}</a> {{end}} </div> </div> |