76aad9b76e
Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
22 lines
1.1 KiB
Text
22 lines
1.1 KiB
Text
.btn-group.tree-btn-group
|
|
= edit_blob_link(@project, @ref, @path)
|
|
= link_to 'Raw', namespace_project_raw_path(@project.namespace, @project, @id),
|
|
class: 'btn btn-small', target: '_blank'
|
|
-# only show normal/blame view links for text files
|
|
- if @blob.text?
|
|
- if current_page? namespace_project_blame_path(@project.namespace, @project, @id)
|
|
= link_to 'Normal View', namespace_project_blob_path(@project.namespace, @project, @id),
|
|
class: 'btn btn-small'
|
|
- else
|
|
= link_to 'Blame', namespace_project_blame_path(@project.namespace, @project, @id),
|
|
class: 'btn btn-small' unless @blob.empty?
|
|
= link_to 'History', namespace_project_commits_path(@project.namespace, @project, @id),
|
|
class: 'btn btn-small'
|
|
- if @ref != @commit.sha
|
|
= link_to 'Permalink', namespace_project_blob_path(@project.namespace, @project,
|
|
tree_join(@commit.sha, @path)), class: 'btn btn-small'
|
|
|
|
- if allowed_tree_edit?
|
|
= button_tag class: 'remove-blob btn btn-small btn-remove',
|
|
'data-toggle' => 'modal', 'data-target' => '#modal-remove-blob' do
|
|
Remove
|