summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-13 09:47:32 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-13 09:47:32 +0200
commit5c1a360f4172273e4fe568e9cbafda9a95858623 (patch)
treeee953a07dbb0177ff0f8f5541db11d64900dc94d
parent9c7d821cf752a98f8c7a40056816f6629ca1f734 (diff)
downloadgitlab-ce-5c1a360f4172273e4fe568e9cbafda9a95858623.tar.gz
Imrpove new file form
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/assets/stylesheets/sections/editor.scss11
-rw-r--r--app/views/projects/new_tree/show.html.haml14
2 files changed, 7 insertions, 18 deletions
diff --git a/app/assets/stylesheets/sections/editor.scss b/app/assets/stylesheets/sections/editor.scss
index 0bfbc0f2ad5..057f7b7fd44 100644
--- a/app/assets/stylesheets/sections/editor.scss
+++ b/app/assets/stylesheets/sections/editor.scss
@@ -34,15 +34,4 @@
margin: 5px 8px 0 8px;
}
}
- .commit_message-group {
- margin-top: 20px;
-
- label {
- font-size: 16px;
- line-height: 20px;
- }
- textarea {
- @extend .col-md-8;
- }
- }
}
diff --git a/app/views/projects/new_tree/show.html.haml b/app/views/projects/new_tree/show.html.haml
index b206bc000a6..078a4b80d0d 100644
--- a/app/views/projects/new_tree/show.html.haml
+++ b/app/views/projects/new_tree/show.html.haml
@@ -6,13 +6,13 @@
= label_tag 'file_name', class: "control-label" do
File name
.col-sm-10
- %span.monospace= @path[-1] == "/" ? @path : @path + "/"
- &nbsp;
- = text_field_tag 'file_name', params[:file_name], placeholder: "sample.rb", required: true, class: 'form-control'
- %span
- &nbsp;
- on
- %span.label-branch= @ref
+ .input-group
+ %span.input-group-addon
+ = @path[-1] == "/" ? @path : @path + "/"
+ = text_field_tag 'file_name', params[:file_name], placeholder: "sample.rb", required: true, class: 'form-control'
+ %span.input-group-addon
+ on
+ %span= @ref
.form-group.commit_message-group
= label_tag 'commit_message', class: "control-label" do