Commit 5c1a360f4172273e4fe568e9cbafda9a95858623

Authored by Dmitriy Zaporozhets
1 parent 9c7d821c

Imrpove new file form

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/assets/stylesheets/sections/editor.scss
... ... @@ -34,15 +34,4 @@
34 34 margin: 5px 8px 0 8px;
35 35 }
36 36 }
37   - .commit_message-group {
38   - margin-top: 20px;
39   -
40   - label {
41   - font-size: 16px;
42   - line-height: 20px;
43   - }
44   - textarea {
45   - @extend .col-md-8;
46   - }
47   - }
48 37 }
... ...
app/views/projects/new_tree/show.html.haml
... ... @@ -6,13 +6,13 @@
6 6 = label_tag 'file_name', class: "control-label" do
7 7 File name
8 8 .col-sm-10
9   - %span.monospace= @path[-1] == "/" ? @path : @path + "/"
10   - &nbsp;
11   - = text_field_tag 'file_name', params[:file_name], placeholder: "sample.rb", required: true, class: 'form-control'
12   - %span
13   - &nbsp;
14   - on
15   - %span.label-branch= @ref
  9 + .input-group
  10 + %span.input-group-addon
  11 + = @path[-1] == "/" ? @path : @path + "/"
  12 + = text_field_tag 'file_name', params[:file_name], placeholder: "sample.rb", required: true, class: 'form-control'
  13 + %span.input-group-addon
  14 + on
  15 + %span= @ref
16 16  
17 17 .form-group.commit_message-group
18 18 = label_tag 'commit_message', class: "control-label" do
... ...