2014-09-02 18:07:02 +05:30
|
|
|
.btn-group.tree-btn-group
|
2015-04-26 12:48:37 +05:30
|
|
|
= edit_blob_link(@project, @ref, @path)
|
|
|
|
= link_to 'Raw', namespace_project_raw_path(@project.namespace, @project, @id),
|
|
|
|
class: 'btn btn-sm', target: '_blank'
|
2014-09-02 18:07:02 +05:30
|
|
|
-# only show normal/blame view links for text files
|
|
|
|
- if @blob.text?
|
2015-04-26 12:48:37 +05:30
|
|
|
- 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-sm'
|
2014-09-02 18:07:02 +05:30
|
|
|
- else
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to 'Blame', namespace_project_blame_path(@project.namespace, @project, @id),
|
|
|
|
class: 'btn btn-sm' unless @blob.empty?
|
|
|
|
= link_to 'History', namespace_project_commits_path(@project.namespace, @project, @id),
|
|
|
|
class: 'btn btn-sm'
|
|
|
|
- if @ref != @commit.sha
|
|
|
|
= link_to 'Permalink', namespace_project_blob_path(@project.namespace, @project,
|
|
|
|
tree_join(@commit.sha, @path)), class: 'btn btn-sm'
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
- if allowed_tree_edit?
|
2015-04-26 12:48:37 +05:30
|
|
|
= button_tag class: 'remove-blob btn btn-sm btn-remove',
|
|
|
|
'data-toggle' => 'modal', 'data-target' => '#modal-remove-blob' do
|
|
|
|
Remove
|