#33 Do not show the banner on forks
Merged 7 years ago by pingou. Opened 7 years ago by pingou.

file modified
+1 -1
@@ -34,7 +34,7 @@ 

  

  {% block repo %}

  

-   {% if authenticated and g.repo_committer

+   {% if authenticated and g.repo_committer and not repo.is_fork

        and not repo.settings.get('pull_requests', True) and not readme %}

      <div class="row">

        <div class="col-md-8">

Since forks by default have PR turned off, no need to show the banner there.

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

Pull-Request has been merged by pingou

7 years ago
Metadata