Commit 02c83f12 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets Committed by Valeriy Sizov

Design improved

parent 57e2b5ed
.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
= hidden_field_tag 'last_commit', @last_commit
= hidden_field_tag 'content'
.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'
= submit_tag "Save"
.form-actions
= hidden_field_tag 'last_commit', @last_commit
= hidden_field_tag 'content'
= submit_tag "Save", class: 'btn save-btn'
:javascript
var editor = ace.edit("editor");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment