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 = form_tag(project_tree_path(@project, @id), :method => :put) do
File: .file_holder
%span.file_name .file_title
= @tree.path.force_encoding('utf-8') %i.icon-file
%br = @tree.path.force_encoding('utf-8')
= form_tag(project_tree_path(@project, @id), :method => :put) do .file_content.code
#editor #editor= @tree.data
= @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 'last_commit', @last_commit
= hidden_field_tag 'content' = hidden_field_tag 'content'
= submit_tag "Save", class: 'btn save-btn'
= text_area_tag 'text_commit'
= submit_tag "Save"
: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