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

Design improved

parent 57e2b5ed
.file-editor { .file-editor {
#editor{ #editor{
height: 500px; height: 500px;
width: 90%; width: 100%;
position: relative; position: relative;
margin-bottom: 20px;
} }
textarea{ .editor-commit-comment {
display: block; padding-top:20px;
width: 40%; textarea {
margin: 10px 0 10px 0; width: 50%;
margin-left: 20px;
}
} }
} }
.file-editor .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 = form_tag(project_tree_path(@project, @id), :method => :put) do
#editor .file_holder
= @tree.data .file_title
= hidden_field_tag 'last_commit', @last_commit %i.icon-file
= hidden_field_tag 'content' = @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' = 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 :javascript
var editor = ace.edit("editor"); 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