@(branches: Seq[String],
  parent: gitbucket.core.service.RepositoryService.RepositoryInfo,
  repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context)
@import gitbucket.core.view.helpers
@if(branches.nonEmpty){
  @branches.map { branch =>
    <div class="box-content" style="line-height: 20pt; margin-bottom: 6px; padding: 10px 6px 10px 10px; background-color: #fff9ea">
      <strong><i class="menu-icon octicon octicon-git-branch"></i><span class="muted">@branch</span></strong>
      <a class="pull-right btn btn-success" style="position: relative; top: -4px;"
         href="@helpers.url(repository)/compare/@{parent.owner}:@{helpers.urlEncode(parent.repository.defaultBranch)}...@{repository.owner}:@{helpers.urlEncode(branch)}">Compare & pull request</a>
    </div>
  }
}

@(branches: Seq[String],
  parent: gitbucket.core.service.RepositoryService.RepositoryInfo,
  repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context)
@import gitbucket.core.view.helpers
@if(branches.nonEmpty){
  @branches.map { branch =>
    <div class="box-content" style="line-height: 20pt; margin-bottom: 6px; padding: 10px 6px 10px 10px; background-color: #fff9ea">
      <strong><i class="menu-icon octicon octicon-git-branch"></i><span class="muted">@branch</span></strong>
      <a class="pull-right btn btn-success" style="position: relative; top: -4px;"
         href="@helpers.url(repository)/compare/@{parent.owner}:@{helpers.helpers.encodeRefname(parent.repository.defaultBranch)}...@{repository.owner}:@{helpers.encodeRefname(branch)}">Compare & pull request</a>
    </div>
  }
}

Fix wrong encodeURL issue when click "Compare & pull request".
Fix wrong encodeURL issue when click "Compare & pull request".
