summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-14 13:23:12 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-14 13:23:12 +0300
commitcd2535324378f44378d2a5e28f05d5df7bf9128f (patch)
tree5099ae9aef634abf0d4d2d847f63e2ded16dba9a
parenta6e57749dccb2373dc13089006eba770bc376a67 (diff)
downloadgitlab-ce-cd2535324378f44378d2a5e28f05d5df7bf9128f.tar.gz
Allos specify repository name when create a project
-rw-r--r--app/assets/stylesheets/gitlab_bootstrap/forms.scss4
-rw-r--r--app/assets/stylesheets/sections/projects.scss7
-rw-r--r--app/views/projects/new.html.haml14
3 files changed, 24 insertions, 1 deletions
diff --git a/app/assets/stylesheets/gitlab_bootstrap/forms.scss b/app/assets/stylesheets/gitlab_bootstrap/forms.scss
index bc8fbc2e24e..d1feb554404 100644
--- a/app/assets/stylesheets/gitlab_bootstrap/forms.scss
+++ b/app/assets/stylesheets/gitlab_bootstrap/forms.scss
@@ -24,6 +24,10 @@ input {
input[type="radio"], input[type="checkbox"] {
margin-top: 6px;
}
+
+ .add-on {
+ padding: 6px;
+ }
}
}
diff --git a/app/assets/stylesheets/sections/projects.scss b/app/assets/stylesheets/sections/projects.scss
index 027b51f48f0..9c079bbb9ff 100644
--- a/app/assets/stylesheets/sections/projects.scss
+++ b/app/assets/stylesheets/sections/projects.scss
@@ -7,6 +7,13 @@
}
}
+.project-name-holder {
+ .help-inline {
+ vertical-align: top;
+ padding: 7px;
+ }
+}
+
.project_clone_panel {
@include border-radius(4px);
@include bg-gray-gradient;
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index 59e311b0740..cfcb446e3d9 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -6,11 +6,23 @@
New projects are private by default. You choose who can see the project and commit to repository.
%hr
= form_for @project, remote: true do |f|
- .control-group.project_name_holder
+ .control-group.project-name-holder
= f.label :name do
%strong Project name is
.controls
= f.text_field :name, placeholder: "Example Project", class: "input-xlarge", tabindex: 1, autofocus: true
+ %span.help-inline
+ = link_to "#", class: 'js-toggle-visibility-link' do
+ %span Custom repo name?
+
+ .control-group.js-toggle-visibility-container.hide
+ = f.label :path do
+ %span Repository name
+ .controls
+ .input-append
+ = f.text_field :path
+ %span.add-on .git
+
- if current_user.can_select_namespace?
.control-group