diff --git a/rhodecode/templates/base/base.html b/rhodecode/templates/base/base.html --- a/rhodecode/templates/base/base.html +++ b/rhodecode/templates/base/base.html @@ -207,7 +207,9 @@ %endif %endif
  • ${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}
  • -
  • ${h.link_to(_('Open new pull request'),h.url('pullrequest_home',repo_name=c.repo_name),class_='pull_request')}
  • + %if h.is_hg(c.rhodecode_repo): +
  • ${h.link_to(_('Open new pull request'),h.url('pullrequest_home',repo_name=c.repo_name),class_='pull_request')}
  • + %endif
  • ${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}
  • % if h.HasPermissionAll('hg.admin')('access admin main page'): diff --git a/rhodecode/templates/changelog/changelog.html b/rhodecode/templates/changelog/changelog.html --- a/rhodecode/templates/changelog/changelog.html +++ b/rhodecode/templates/changelog/changelog.html @@ -36,7 +36,9 @@ %if c.rhodecode_db_repo.fork: ${_('Compare fork')} %endif + %if h.is_hg(c.rhodecode_repo): ${_('Open new pull request')} + %endif
    ${h.form(h.url.current(),method='get')}