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 24 input[type="radio"], input[type="checkbox"] {
25 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 7 }
8 8 }
9 9  
  10 +.project-name-holder {
  11 + .help-inline {
  12 + vertical-align: top;
  13 + padding: 7px;
  14 + }
  15 +}
  16 +
10 17 .project_clone_panel {
11 18 @include border-radius(4px);
12 19 @include bg-gray-gradient;
... ...
app/views/projects/new.html.haml
... ... @@ -6,11 +6,23 @@
6 6 New projects are private by default. You choose who can see the project and commit to repository.
7 7 %hr
8 8 = form_for @project, remote: true do |f|
9   - .control-group.project_name_holder
  9 + .control-group.project-name-holder
10 10 = f.label :name do
11 11 %strong Project name is
12 12 .controls
13 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 27 - if current_user.can_select_namespace?
16 28 .control-group
... ...