bd20ec1a34
After click on remove file button you will be asked for commit message via modal window. After submitting modal form file will be removed from repository Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
19 lines
909 B
Text
19 lines
909 B
Text
.btn-group.tree-btn-group
|
|
-# only show edit link for text files
|
|
- if @blob.text?
|
|
- if allowed_tree_edit?
|
|
= link_to "edit", project_edit_tree_path(@project, @id), class: "btn btn-small"
|
|
- else
|
|
%span.btn.btn-small.disabled edit
|
|
= link_to "raw", project_raw_path(@project, @id), class: "btn btn-small", target: "_blank"
|
|
-# only show normal/blame view links for text files
|
|
- if @blob.text?
|
|
- if current_page? project_blame_path(@project, @id)
|
|
= link_to "normal view", project_blob_path(@project, @id), class: "btn btn-small"
|
|
- else
|
|
= link_to "blame", project_blame_path(@project, @id), class: "btn btn-small" unless @blob.empty?
|
|
= link_to "history", project_commits_path(@project, @id), class: "btn btn-small"
|
|
|
|
- if allowed_tree_edit?
|
|
= link_to '#modal-remove-blob', class: "remove-blob btn btn-small btn-remove", "data-toggle" => "modal" do
|
|
remove
|