summaryrefslogtreecommitdiff
path: root/app/views/projects/tree/_tree_header.html.haml
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2018-11-28 15:23:38 -0500
committerMark Lapierre <mlapierre@gitlab.com>2018-12-10 13:10:12 -0500
commited75b46cd9ae2fbc4dfd98447d659c771ddef23c (patch)
tree9a28632fdd55bfc727c23a8ba645b20062c75e3d /app/views/projects/tree/_tree_header.html.haml
parentc61c5cf2d973f9a9add71dbe876df42caa8e4bfe (diff)
downloadgitlab-ce-ed75b46cd9ae2fbc4dfd98447d659c771ddef23c.tar.gz
Update tests and Resources to use new file button
The 'Create new' dropdown is no longer available on a blank project so use the 'New file' button instead.
Diffstat (limited to 'app/views/projects/tree/_tree_header.html.haml')
-rw-r--r--app/views/projects/tree/_tree_header.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/tree/_tree_header.html.haml b/app/views/projects/tree/_tree_header.html.haml
index a89df6adfb3..4e9a119ac66 100644
--- a/app/views/projects/tree/_tree_header.html.haml
+++ b/app/views/projects/tree/_tree_header.html.haml
@@ -20,7 +20,7 @@
- if can_collaborate || can_create_mr_from_fork
%li.breadcrumb-item
- %a.btn.add-to-tree{ addtotree_toggle_attributes }
+ %a.btn.add-to-tree.qa-add-to-tree{ addtotree_toggle_attributes }
= sprite_icon('plus', size: 16, css_class: 'float-left')
= sprite_icon('arrow-down', size: 16, css_class: 'float-left')
- if on_top_of_branch?
@@ -30,7 +30,7 @@
%li.dropdown-header
#{ _('This directory') }
%li
- = link_to project_new_blob_path(@project, @id) do
+ = link_to project_new_blob_path(@project, @id), class: 'qa-new-file-option' do
#{ _('New file') }
%li
= link_to '#modal-upload-blob', { 'data-target' => '#modal-upload-blob', 'data-toggle' => 'modal' } do