Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornschein <bornschein@fias.uni-frankfurt.de>2013-09-13 16:39:04 +0400
committerJoerg Bornschein <bornschein@fias.uni-frankfurt.de>2013-09-13 16:39:04 +0400
commit83b212a4ef942ec34096c2d194f8dd827ef4eb8b (patch)
treeddd9fd873a07413d722a64def5c10d43a02e87a6 /app/views/projects/new.html.haml
parent4d5cdbd286d9ab8ffa09eaea5ef91c8767bfe7aa (diff)
Add public-project? checkbox to new-project view
Diffstat (limited to 'app/views/projects/new.html.haml')
-rw-r--r--app/views/projects/new.html.haml14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index ab8efe5e3e1..9055c04b7fb 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -2,13 +2,7 @@
.project-edit-errors
= render 'projects/errors'
.project-edit-content
- - if Gitlab.config.gitlab.default_projects_features.public
- %p.slead
- New projects are public by default. Any signed in user can see your project but cannot commit to it unless granted access.
- - else
- %p.slead
- 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
= f.label :name do
@@ -53,6 +47,12 @@
%span.light (optional)
.controls
= f.text_area :description, placeholder: "awesome project", class: "input-xlarge", rows: 3, maxlength: 250, tabindex: 3
+ .control-group.project-public-holder
+ = f.label :public do
+ %span Public project
+ .controls
+ = f.check_box :public, { :checked => Gitlab.config.gitlab.default_projects_features.public }, true, false
+ %span.help-inline Make project visible to everyone
.form-actions
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4