2012-10-15 22:08:00 +02:00
|
|
|
.btn-group.tree-btn-group
|
2012-10-15 23:42:08 +02:00
|
|
|
-# only show edit link for text files
|
|
|
|
- if @tree.text?
|
2013-03-24 10:57:44 +01:00
|
|
|
= link_to "edit", project_edit_tree_path(@project, @id), class: "btn btn-tiny", disabled: !allowed_tree_edit?
|
2013-01-29 21:29:21 +01:00
|
|
|
= link_to "raw", project_blob_path(@project, @id), class: "btn btn-tiny", target: "_blank"
|
2012-10-15 23:42:08 +02:00
|
|
|
-# only show normal/blame view links for text files
|
|
|
|
- if @tree.text?
|
|
|
|
- if current_page? project_blame_path(@project, @id)
|
2013-01-29 21:29:21 +01:00
|
|
|
= link_to "normal view", project_tree_path(@project, @id), class: "btn btn-tiny"
|
2012-10-15 23:42:08 +02:00
|
|
|
- else
|
2013-01-29 21:29:21 +01:00
|
|
|
= link_to "blame", project_blame_path(@project, @id), class: "btn btn-tiny"
|
|
|
|
= link_to "history", project_commits_path(@project, @id), class: "btn btn-tiny"
|