gitlabhq/app/views/tree/_blob_actions.html.haml

13 lines
694 B
Text
Raw Normal View History

2012-10-15 22:08:00 +02:00
.btn-group.tree-btn-group
-# only show edit link for text files
- if @tree.text?
= link_to "edit", edit_project_tree_path(@project, @id), class: "btn very_small", disabled: !allowed_tree_edit?
2012-10-15 22:08:00 +02:00
= link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank"
-# only show normal/blame view links for text files
- if @tree.text?
- if current_page? project_blame_path(@project, @id)
= link_to "normal view", project_tree_path(@project, @id), class: "btn very_small"
- else
= link_to "blame", project_blame_path(@project, @id), class: "btn very_small"
2012-10-15 22:08:00 +02:00
= link_to "history", project_commits_path(@project, @id), class: "btn very_small"