diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-10-16 00:08:00 +0400 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-10-16 01:39:49 +0400 |
commit | 5cff72ad1e3287c6315619fe67fab15b934d1bc8 (patch) | |
tree | 68d2a6b60fa708e9aeb42c735a103a9656d8b891 /app | |
parent | 2f05ab149110705cf4947de3eff877391c94f9cb (diff) |
Extract tree/blob_actions partial
Diffstat (limited to 'app')
-rw-r--r-- | app/views/tree/_blob.html.haml | 7 | ||||
-rw-r--r-- | app/views/tree/_blob_actions.html.haml | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/views/tree/_blob.html.haml b/app/views/tree/_blob.html.haml index bae5b5388f7..93271d948af 100644 --- a/app/views/tree/_blob.html.haml +++ b/app/views/tree/_blob.html.haml @@ -4,12 +4,7 @@ %span.file_name = blob.name.force_encoding('utf-8') %small #{blob.mode} - %span.options - .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" + %span.options= render "tree/blob_actions" - if blob.text? - if gitlab_markdown?(blob.name) .file_content.wiki diff --git a/app/views/tree/_blob_actions.html.haml b/app/views/tree/_blob_actions.html.haml new file mode 100644 index 00000000000..27f835e82a3 --- /dev/null +++ b/app/views/tree/_blob_actions.html.haml @@ -0,0 +1,5 @@ +.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" |