gitlab-org--gitlab-foss/app/views/projects/tree/_tree_header.html.haml

21 lines
681 B
Text
Raw Normal View History

2017-06-22 04:19:04 -04:00
.tree-ref-container
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'tree', path: @path
2017-07-31 18:36:07 -04:00
- if show_new_repo?
.tree-ref-target-holder.js-tree-ref-target-holder
= icon('long-arrow-right', title: 'to target branch')
= render 'shared/target_switcher', destination: 'tree', path: @path
2017-08-03 08:29:35 -04:00
- unless show_new_repo?
= render 'projects/tree/old_tree_header'
.tree-controls
- if show_new_repo?
= render 'shared/repo/editable_mode'
- else
= link_to s_('Commits|History'), project_commits_path(@project, @id), class: 'btn'
= render 'projects/find_file_link'
= render 'projects/buttons/download', project: @project, ref: @ref