Commit 5cff72ad authored by Riyad Preukschas's avatar Riyad Preukschas

Extract tree/blob_actions partial

parent 2f05ab14
...@@ -4,12 +4,7 @@ ...@@ -4,12 +4,7 @@
%span.file_name %span.file_name
= blob.name.force_encoding('utf-8') = blob.name.force_encoding('utf-8')
%small #{blob.mode} %small #{blob.mode}
%span.options %span.options= render "tree/blob_actions"
.btn-group.tree-btn-group
= link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank"
= link_to "history", project_commits_path(@project, @id), class: "btn very_small"
= link_to "blame", project_blame_path(@project, @id), class: "btn very_small"
= link_to "edit", edit_project_tree_path(@project, @id), class: "btn very_small"
- if blob.text? - if blob.text?
- if gitlab_markdown?(blob.name) - if gitlab_markdown?(blob.name)
.file_content.wiki .file_content.wiki
......
.btn-group.tree-btn-group
= link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank"
= link_to "history", project_commits_path(@project, @id), class: "btn very_small"
= link_to "blame", project_blame_path(@project, @id), class: "btn very_small"
= link_to "edit", edit_project_tree_path(@project, @id), class: "btn very_small"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment