Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
df92d4ff
Commit
df92d4ff
authored
Sep 14, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5072 from jbornschein/proj-new-public
Add "public-project?" checkbox to new-project view
parents
c479b1dd
c71460d2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
app/assets/stylesheets/sections/projects.scss
app/assets/stylesheets/sections/projects.scss
+6
-0
app/contexts/projects/create_context.rb
app/contexts/projects/create_context.rb
+1
-1
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+7
-7
No files found.
app/assets/stylesheets/sections/projects.scss
View file @
df92d4ff
...
...
@@ -36,6 +36,12 @@
}
}
.project-public-holder
{
.help-inline
{
padding-top
:
7px
;
}
}
.save-project-loader
{
img
{
margin-top
:
50px
;
...
...
app/contexts/projects/create_context.rb
View file @
df92d4ff
...
...
@@ -18,7 +18,7 @@ module Projects
snippets_enabled:
default_features
.
snippets
,
merge_requests_enabled:
default_features
.
merge_requests
,
public:
default_features
.
public
}
}
.
stringify_keys
@project
=
Project
.
new
(
default_opts
.
merge
(
params
))
...
...
app/views/projects/new.html.haml
View file @
df92d4ff
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment