Commit cd2535324378f44378d2a5e28f05d5df7bf9128f

Authored by Dmitriy Zaporozhets
1 parent a6e57749

Allos specify repository name when create a project

app/assets/stylesheets/gitlab_bootstrap/forms.scss
@@ -24,6 +24,10 @@ input { @@ -24,6 +24,10 @@ input {
24 input[type="radio"], input[type="checkbox"] { 24 input[type="radio"], input[type="checkbox"] {
25 margin-top: 6px; 25 margin-top: 6px;
26 } 26 }
  27 +
  28 + .add-on {
  29 + padding: 6px;
  30 + }
27 } 31 }
28 } 32 }
29 33
app/assets/stylesheets/sections/projects.scss
@@ -7,6 +7,13 @@ @@ -7,6 +7,13 @@
7 } 7 }
8 } 8 }
9 9
  10 +.project-name-holder {
  11 + .help-inline {
  12 + vertical-align: top;
  13 + padding: 7px;
  14 + }
  15 +}
  16 +
10 .project_clone_panel { 17 .project_clone_panel {
11 @include border-radius(4px); 18 @include border-radius(4px);
12 @include bg-gray-gradient; 19 @include bg-gray-gradient;
app/views/projects/new.html.haml
@@ -6,11 +6,23 @@ @@ -6,11 +6,23 @@
6 New projects are private by default. You choose who can see the project and commit to repository. 6 New projects are private by default. You choose who can see the project and commit to repository.
7 %hr 7 %hr
8 = form_for @project, remote: true do |f| 8 = form_for @project, remote: true do |f|
9 - .control-group.project_name_holder 9 + .control-group.project-name-holder
10 = f.label :name do 10 = f.label :name do
11 %strong Project name is 11 %strong Project name is
12 .controls 12 .controls
13 = f.text_field :name, placeholder: "Example Project", class: "input-xlarge", tabindex: 1, autofocus: true 13 = f.text_field :name, placeholder: "Example Project", class: "input-xlarge", tabindex: 1, autofocus: true
  14 + %span.help-inline
  15 + = link_to "#", class: 'js-toggle-visibility-link' do
  16 + %span Custom repo name?
  17 +
  18 + .control-group.js-toggle-visibility-container.hide
  19 + = f.label :path do
  20 + %span Repository name
  21 + .controls
  22 + .input-append
  23 + = f.text_field :path
  24 + %span.add-on .git
  25 +
14 26
15 - if current_user.can_select_namespace? 27 - if current_user.can_select_namespace?
16 .control-group 28 .control-group