move edit to separate controller. This fixes #3265
This commit is contained in:
parent
b6641d6932
commit
29b0ac489b
5 changed files with 51 additions and 41 deletions
|
@ -1,5 +1,5 @@
|
|||
.file-editor
|
||||
= form_tag(project_tree_path(@project, @id), method: :put, class: "form-horizontal") do
|
||||
= form_tag(project_edit_tree_path(@project, @id), method: :put, class: "form-horizontal") do
|
||||
.file_holder
|
||||
.file_title
|
||||
%i.icon-file
|
|
@ -1,7 +1,7 @@
|
|||
.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 btn-tiny", disabled: !allowed_tree_edit?
|
||||
= link_to "edit", project_edit_tree_path(@project, @id), class: "btn btn-tiny", disabled: !allowed_tree_edit?
|
||||
= link_to "raw", project_blob_path(@project, @id), class: "btn btn-tiny", target: "_blank"
|
||||
-# only show normal/blame view links for text files
|
||||
- if @tree.text?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue