2014-09-02 18:07:02 +05:30
|
|
|
.btn-group.tree-btn-group
|
2015-04-26 12:48:37 +05:30
|
|
|
= 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
|
2016-01-14 18:37:52 +05:30
|
|
|
- if blob_text_viewable?(@blob)
|
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'
|
2015-12-23 02:04:40 +05:30
|
|
|
= 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
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
- if current_user
|
2015-09-25 12:07:36 +05:30
|
|
|
.btn-group{ role: "group" }
|
2016-09-13 17:45:13 +05:30
|
|
|
- if blob_text_viewable?(@blob)
|
|
|
|
= edit_blob_link
|
2016-01-14 18:37:52 +05:30
|
|
|
= replace_blob_link
|
|
|
|
= delete_blob_link
|