Commit 5cff72ad1e3287c6315619fe67fab15b934d1bc8
1 parent
2f05ab14
Exists in
master
and in
4 other branches
Extract tree/blob_actions partial
Showing
2 changed files
with
6 additions
and
6 deletions
Show diff stats
app/views/tree/_blob.html.haml
... | ... | @@ -4,12 +4,7 @@ |
4 | 4 | %span.file_name |
5 | 5 | = blob.name.force_encoding('utf-8') |
6 | 6 | %small #{blob.mode} |
7 | - %span.options | |
8 | - .btn-group.tree-btn-group | |
9 | - = link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank" | |
10 | - = link_to "history", project_commits_path(@project, @id), class: "btn very_small" | |
11 | - = link_to "blame", project_blame_path(@project, @id), class: "btn very_small" | |
12 | - = link_to "edit", edit_project_tree_path(@project, @id), class: "btn very_small" | |
7 | + %span.options= render "tree/blob_actions" | |
13 | 8 | - if blob.text? |
14 | 9 | - if gitlab_markdown?(blob.name) |
15 | 10 | .file_content.wiki | ... | ... |
... | ... | @@ -0,0 +1,5 @@ |
1 | +.btn-group.tree-btn-group | |
2 | + = link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank" | |
3 | + = link_to "history", project_commits_path(@project, @id), class: "btn very_small" | |
4 | + = link_to "blame", project_blame_path(@project, @id), class: "btn very_small" | |
5 | + = link_to "edit", edit_project_tree_path(@project, @id), class: "btn very_small" | ... | ... |