gitlab-org--gitlab-foss/app/views/projects/tree/_tree_header.html.haml
Luke "Jared" Bennett d159a9a21c
Fix haml_lint
2017-08-01 14:51:42 +01:00

19 lines
618 B
Text

.tree-ref-container
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'tree', path: @path
- if show_new_repo?
= icon('long-arrow-right', title: 'to target branch')
= render 'shared/target_switcher', destination: 'tree', path: @path
- if !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