提交 02c83f12 编写于 作者: D Dmitriy Zaporozhets 提交者: Valeriy Sizov

Design improved

上级 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
= 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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册