Commit cd2535324378f44378d2a5e28f05d5df7bf9128f
1 parent
a6e57749
Exists in
master
and in
4 other branches
Allos specify repository name when create a project
Showing
3 changed files
with
24 additions
and
1 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/forms.scss
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 |