Skip to content
Snippets Groups Projects
Commit 02c83f12 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets Committed by Valeriy Sizov
Browse files

Design improved

parent 57e2b5ed
No related branches found
No related tags found
No related merge requests found
.file-editor {
#editor{
height: 500px;
width: 90%;
width: 100%;
position: relative;
margin-bottom: 20px;
}
textarea{
display: block;
width: 40%;
margin: 10px 0 10px 0;
.editor-commit-comment {
padding-top:20px;
textarea {
width: 50%;
margin-left: 20px;
}
}
}
.file-editor
.file_name
File:
%span.file_name
= @tree.path.force_encoding('utf-8')
%br
= form_tag(project_tree_path(@project, @id), :method => :put) do
#editor
= @tree.data
= form_tag(project_tree_path(@project, @id), :method => :put) do
.file_holder
.file_title
%i.icon-file
= @tree.path.force_encoding('utf-8')
.file_content.code
#editor= @tree.data
.editor-commit-comment
= label_tag 'text-commit' do
%p.slead Commit message
= text_area_tag 'text_commit'
.form-actions
= hidden_field_tag 'last_commit', @last_commit
= hidden_field_tag 'content'
= text_area_tag 'text_commit'
= submit_tag "Save"
= submit_tag "Save", class: 'btn save-btn'
 
:javascript
var editor = ace.edit("editor");
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment