Commit 7940a5d4 authored by TM Lee's avatar TM Lee

[#22826] Ensure find_file_link and download button is part of file tree header

- Move the find_file_link and download partial into the project tree_header partial
- Added Changelog
parent 1005389f
...@@ -160,7 +160,6 @@ ...@@ -160,7 +160,6 @@
.tree-controls { .tree-controls {
float: right; float: right;
margin-top: 11px;
position: relative; position: relative;
z-index: 2; z-index: 2;
......
.tree-controls
= render 'projects/find_file_link'
= render 'projects/buttons/download', project: @project, ref: @ref
.tree-ref-holder .tree-ref-holder
= render 'shared/ref_switcher', destination: 'tree', path: @path = render 'shared/ref_switcher', destination: 'tree', path: @path
......
...@@ -7,12 +7,4 @@ ...@@ -7,12 +7,4 @@
= render 'projects/last_push' = render 'projects/last_push'
%div{ class: container_class } %div{ class: container_class }
.tree-controls = render 'projects/files'
= render 'projects/find_file_link'
= render 'projects/buttons/download', project: @project, ref: @ref
#tree-holder.tree-holder.clearfix
.nav-block
= render 'projects/tree/tree_header', tree: @tree
= render 'projects/tree/tree_content', tree: @tree
---
title: Fix UI inconsistency different files view (find file button missing)
merge_request: 9847
author: TM Lee
require 'spec_helper'
feature 'Find files button in the tree header', feature: true do
given(:user) { create(:user) }
given(:project) { create(:project) }
background do
login_as(user)
project.team << [user, :developer]
end
scenario 'project main screen' do
visit namespace_project_path(
project.namespace,
project
)
expect(page).to have_selector('.tree-controls .shortcuts-find-file')
end
scenario 'project tree screen' do
visit namespace_project_tree_path(
project.namespace,
project,
project.default_branch
)
expect(page).to have_selector('.tree-controls .shortcuts-find-file')
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment