diff options
author | Phil Hughes <me@iamphill.com> | 2019-07-10 13:17:45 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-07-15 15:23:52 +0100 |
commit | 1e3877a9c86a3651b12c2f01310e68599b15f8b8 (patch) | |
tree | a65e005af158137f451c5a16bb9c542e5b81ee2c /app/views/projects/_files.html.haml | |
parent | 4d8babc809ebd13e4f583d5244a97b2955fd4af5 (diff) | |
download | gitlab-ce-1e3877a9c86a3651b12c2f01310e68599b15f8b8.tar.gz |
Added add to tree dropdown to Vue files breadcrumb
Diffstat (limited to 'app/views/projects/_files.html.haml')
-rw-r--r-- | app/views/projects/_files.html.haml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/projects/_files.html.haml b/app/views/projects/_files.html.haml index 6763513f9ae..95fdad125a7 100644 --- a/app/views/projects/_files.html.haml +++ b/app/views/projects/_files.html.haml @@ -20,6 +20,9 @@ - if vue_file_list_enabled? #js-tree-list{ data: { project_path: @project.full_path, project_short_path: @project.path, ref: ref, full_name: @project.name_with_namespace } } + - if can_edit_tree? + = render 'projects/blob/upload', title: _('Upload New File'), placeholder: _('Upload New File'), button_title: _('Upload file'), form_path: project_create_blob_path(@project, @id), method: :post + = render 'projects/blob/new_dir' - if @tree.readme = render "projects/tree/readme", readme: @tree.readme - else |