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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
cb127785
Commit
cb127785
authored
Jul 31, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds CSS for desktop and mobile
parent
51b418b5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
118 additions
and
17 deletions
+118
-17
app/assets/javascripts/commons/bootstrap.js
app/assets/javascripts/commons/bootstrap.js
+1
-0
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+99
-9
app/views/projects/_project_templates.html.haml
app/views/projects/_project_templates.html.haml
+15
-5
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+3
-3
No files found.
app/assets/javascripts/commons/bootstrap.js
View file @
cb127785
...
...
@@ -3,6 +3,7 @@ import $ from 'jquery';
// bootstrap jQuery plugins
import
'
bootstrap-sass/assets/javascripts/bootstrap/affix
'
;
import
'
bootstrap-sass/assets/javascripts/bootstrap/alert
'
;
import
'
bootstrap-sass/assets/javascripts/bootstrap/button
'
;
import
'
bootstrap-sass/assets/javascripts/bootstrap/dropdown
'
;
import
'
bootstrap-sass/assets/javascripts/bootstrap/modal
'
;
import
'
bootstrap-sass/assets/javascripts/bootstrap/tab
'
;
...
...
app/assets/stylesheets/pages/projects.scss
View file @
cb127785
...
...
@@ -456,6 +456,7 @@ a.deploy-project-label {
}
}
.project-template
,
.project-import
{
.form-group
{
margin-bottom
:
5px
;
...
...
@@ -470,7 +471,7 @@ a.deploy-project-label {
.btn
{
padding
:
8px
;
margin-
lef
t
:
10px
;
margin-
righ
t
:
10px
;
}
>
div
{
...
...
@@ -482,23 +483,112 @@ a.deploy-project-label {
.project-template
{
.project-templates-buttons
{
i
{
i
,
img
{
display
:
block
;
height
:
24px
;
font-size
:
24px
;
margin
-bottom
:
4px
;
margin
:
4px
auto
;
}
img
{
display
:
block
;
height
:
24px
;
margin
:
0
auto
4px
;
@media
(
max-width
:
$screen-md-max
)
{
i
,
img
{
display
:
inline-block
;
height
:
20px
;
font-size
:
14px
;
margin
:
0
;
}
}
}
&
:after
{
content
:
"OR"
;
position
:
absolute
;
color
:
$gray-darkest
;
right
:
13px
;
z-index
:
2
;
top
:
78px
;
}
@media
(
max-width
:
$screen-md-max
)
{
&
:after
{
content
:
"OR"
;
float
:
right
;
top
:
100%
;
left
:
49%
;
margin-top
:
10px
;
}
}
@media
(
max-width
:
$screen-xs-min
)
{
&
:after
{
top
:
100%
;
left
:
46%
;
margin-top
:
10px
;
}
}
@media
(
min-width
:
$screen-xs-max
)
and
(
max-width
:
$screen-md-max
)
{
&
:after
{
top
:
100%
;
left
:
49%
;
margin-top
:
10px
;
}
}
}
.new-project-first-column
{
&
:after
{
background
:
$white-light
;
content
:
" "
;
position
:
absolute
;
top
:
66%
;
height
:
40px
;
width
:
20px
;
right
:
7px
;
z-index
:
1
;
}
@media
(
min-width
:
$screen-xs-max
)
and
(
max-width
:
$screen-md-max
)
{
margin-bottom
:
40px
;
&
:after
{
top
:
100%
;
left
:
47%
;
width
:
50px
;
}
}
@media
(
max-width
:
$screen-xs-max
)
{
margin-bottom
:
40px
;
&
:after
{
top
:
100%
;
left
:
42%
;
width
:
50px
;
}
}
}
.new-project-second-column
{
&
:before
{
background
:
$gray-darkest
;
width
:
1px
;
height
:
100%
;
position
:
absolute
;
left
:
-23px
;
display
:
inline-block
;
content
:
" "
;
}
@media
(
max-width
:
$screen-md-max
)
{
&
:before
{
height
:
1px
;
left
:
15px
;
top
:
-20px
;
right
:
15px
;
width
:
auto
;
}
}
}
.project-stats
{
...
...
app/views/projects/_project_templates.html.haml
View file @
cb127785
.
btn-group.project-templates
-buttons
{
data:
{
toggle:
"buttons"
}}
%
label
.btn
.active
%input
{
type:
"radio"
,
autocomplete:
"off"
,
name:
"project_templates"
}
.
project-templates-buttons.import
-buttons
{
data:
{
toggle:
"buttons"
}}
%
div
.btn.btn-default
.active
%input
{
type:
"radio"
,
autocomplete:
"off"
,
name:
"project_templates"
,
id:
"blank"
,
checked:
"true"
}
=
icon
(
'file-o'
)
Blank
-
Gitlab
::
ProjectTemplate
.
all
.
each
do
|
template
|
-# The title should be the value posted to the controller, a pretty name to print would be
-# template.name
%
label
.btn
%input
{
type:
"radio"
,
autocomplete:
"off"
,
name:
"project_templates"
}
%
div
.btn
%input
{
type:
"radio"
,
autocomplete:
"off"
,
name:
"project_templates"
,
id:
template
.
name
}
=
image_tag
(
template
.
logo_path
)
=
template
.
title
%div
.btn.btn-default
%input
{
type:
"radio"
,
autocomplete:
"off"
,
name:
"project_templates"
,
id:
"blank"
}
=
icon
(
'file-o'
)
Node Express
%div
.btn.btn-default
%input
{
type:
"radio"
,
autocomplete:
"off"
,
name:
"project_templates"
,
id:
"blank"
}
=
icon
(
'file-o'
)
Java Spring
app/views/projects/new.html.haml
View file @
cb127785
...
...
@@ -18,15 +18,15 @@
.col-lg-9.js-toggle-container
=
form_for
@project
,
html:
{
class:
'new_project'
}
do
|
f
|
.row
.col-lg-6.col-sm-12
.col-lg-6.col-sm-12
.new-project-first-column
.project-template
.form_group.clearfix
=
f
.
label
:template_project
,
class:
'label-light'
do
Create from template
=
link_to
icon
(
'question-circle'
),
help_page_path
(
"public_access/public_access"
),
aria:
{
label:
"What's included in a template?"
},
title:
"What's included in a template?"
,
class:
'has-tooltip'
,
data:
{
placement:
'top'
}
.col-sm-12.import-buttons
%div
=
render
'project_templates'
,
f:
f
.col-lg-6.col-sm-12
.col-lg-6.col-sm-12
.new-project-second-column
-
if
import_sources_enabled?
.project-import
.form-group.clearfix
...
...
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