gitlab-org--gitlab-foss/app/views/projects/tree/_tree_header.html.haml
Phil Hughes 5c75d750cf
addressed feedback from review
spec fixes
2017-10-30 14:36:24 +00:00

18 lines
522 B
Text

.tree-ref-container
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'tree', path: @path, show_create: true
- if show_new_repo? && can_push_branch?(@project, @ref)
.js-new-dropdown
- else
= render 'projects/tree/old_tree_header'
.tree-controls
- if show_new_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