#11 Drop the delete button when the config is off
Merged 7 years ago by pingou. Opened 7 years ago by pingou.

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

  

                  </div>

                  <div class="branch_del col-md-4">

-                   {% if g.repo_committer and branch != head %}

+                   {% if g.repo_committer and branch != head and config.get('ALLOW_DELETE_BRANCH', True) %}

                    <form id="delete_branch_form-{{ branch | replace('/', '__') }}" action="{{

                      url_for('.delete_branch',

                              repo=repo.name,

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

Pull-Request has been merged by pingou

7 years ago
Metadata