diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-18 12:03:34 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-18 12:03:34 +0300 |
commit | d9c82d679fd622aead99aeb90369361a05e02a36 (patch) | |
tree | 6bc7986aafad7e0a3998c0a026573e9baf0cc032 /app/views/projects/blob/_upload.html.haml | |
parent | 110a5f9c96457ac314f30630735dd827d9d96a4c (diff) |
Automatically fork a project when not allowed to edit a file.
Diffstat (limited to 'app/views/projects/blob/_upload.html.haml')
-rw-r--r-- | app/views/projects/blob/_upload.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/blob/_upload.html.haml b/app/views/projects/blob/_upload.html.haml index ecc90a30e78..676924dc6ca 100644 --- a/app/views/projects/blob/_upload.html.haml +++ b/app/views/projects/blob/_upload.html.haml @@ -20,6 +20,11 @@ = button_tag button_title, class: 'btn btn-small btn-create btn-upload-file', id: 'submit-all' = link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal" + - unless can?(current_user, :push_code, @project) + .inline.prepend-left-10 + = commit_in_fork_help + + :javascript disableButtonIfEmptyField($('.js-upload-blob-form').find('.js-commit-message'), '.btn-upload-file'); new BlobFileDropzone($('.js-upload-blob-form'), '#{method}'); |