| ... | @@ -5,8 +5,6 @@ |
... | @@ -5,8 +5,6 @@ |
|
|
%i.icon-file
|
|
%i.icon-file
|
|
|
%span.file_name
|
|
%span.file_name
|
|
|
= "#{@tree.path.force_encoding('utf-8')} (#{@ref})"
|
|
= "#{@tree.path.force_encoding('utf-8')} (#{@ref})"
|
|
|
%span.options
|
|
|
|
|
= link_to "cancel editing", project_tree_path(@project, @id), class: "btn very_small"
|
|
|
|
|
.file_content.code
|
|
.file_content.code
|
|
|
#editor= @tree.data
|
|
#editor= @tree.data
|
|
|
|
|
|
| ... | @@ -18,6 +16,7 @@ |
... | @@ -18,6 +16,7 @@ |
|
|
= hidden_field_tag 'last_commit', @last_commit
|
|
= hidden_field_tag 'last_commit', @last_commit
|
|
|
= hidden_field_tag 'content', '', :id => :file_content
|
|
= hidden_field_tag 'content', '', :id => :file_content
|
|
|
= button_tag "Commit", class: 'btn save-btn'
|
|
= button_tag "Commit", class: 'btn save-btn'
|
|
|
|
= link_to "Cancel", project_tree_path(@project, @id), class: "btn cancel-btn", confirm: "Are you sure?"
|
|
|
|
|
|
|
|
:javascript
|
|
:javascript
|
|
|
var editor = ace.edit("editor");
|
|
var editor = ace.edit("editor");
|
| ... | |
... | |
| ... | | ... | |