BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
01d9bffd
Unverified
Commit
01d9bffd
authored
Jun 15, 2016
by
Connor Shea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve New Project page for mobile.
Separate the New Project page's "Project path" grouped fields into separate fields. Fixes #18599.
parent
af493ccf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
20 deletions
+12
-20
projects.scss
app/assets/stylesheets/pages/projects.scss
+3
-7
new.html.haml
app/views/projects/new.html.haml
+9
-13
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
01d9bffd
...
...
@@ -5,10 +5,12 @@
font-weight
:
normal
;
}
}
.no-ssh-key-message
,
.project-limit-message
{
background-color
:
#f28d35
;
margin-bottom
:
0
;
}
.new_project
,
.edit-project
{
fieldset
.features
{
...
...
@@ -18,13 +20,6 @@
}
}
.project-name-holder
{
.help-inline
{
vertical-align
:
top
;
padding
:
7px
;
}
}
.project-home-panel
{
background
:
$white-light
;
text-align
:
left
;
...
...
@@ -376,6 +371,7 @@ a.deploy-project-label {
.project-import
.btn
{
float
:
left
;
margin-bottom
:
10px
;
margin-right
:
10px
;
}
...
...
app/views/projects/new.html.haml
View file @
01d9bffd
...
...
@@ -11,21 +11,17 @@
.project-edit-content
=
form_for
@project
,
html:
{
class:
'new_project form-horizontal js-requires-input'
}
do
|
f
|
.form-group.project-name-holder
.form-group
=
f
.
label
:path
,
class:
'control-label'
do
Project owner
.col-sm-10
=
f
.
select
:namespace_id
,
namespaces_options
(
:current_user
),
{},
{
class:
'select2 js-select-namespace'
,
tabindex:
1
}
.form-group
=
f
.
label
:path
,
class:
'control-label'
do
Project
path
Project
name
.col-sm-10
.input-group
-
if
current_user
.
can_select_namespace?
.input-group-addon
=
root_url
=
f
.
select
:namespace_id
,
namespaces_options
(
params
[
:namespace_id
]
||
:current_user
,
display_path:
true
),
{},
{
class:
'select2 js-select-namespace'
,
tabindex:
1
}
.input-group-addon
\/
-
else
.input-group-addon
#{
root_url
}#{
current_user
.
username
}
/
=
f
.
text_field
:path
,
placeholder:
"my-awesome-project"
,
class:
"form-control"
,
tabindex:
2
,
autofocus:
true
,
required:
true
=
f
.
text_field
:path
,
placeholder:
"my-awesome-project"
,
class:
"form-control"
,
tabindex:
2
,
autofocus:
true
,
required:
true
-
if
current_user
.
can_create_group?
.help-block
...
...
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