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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
191687a1
Commit
191687a1
authored
Jul 08, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add empty deploy dropdown button
parent
1f67cc4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
9 deletions
+46
-9
app/assets/stylesheets/pages/pipelines.scss
app/assets/stylesheets/pages/pipelines.scss
+27
-0
app/views/projects/ci/pipelines/_pipeline.html.haml
app/views/projects/ci/pipelines/_pipeline.html.haml
+19
-9
No files found.
app/assets/stylesheets/pages/pipelines.scss
View file @
191687a1
...
@@ -90,12 +90,35 @@
...
@@ -90,12 +90,35 @@
.pipeline-actions
{
.pipeline-actions
{
.btn
{
.btn
{
margin
:
0
;
}
.dropdown-toggle
,
.dropdown-menu
{
color
:
$table-text-gray
;
color
:
$table-text-gray
;
.fa
{
color
:
$table-text-gray
;
margin-right
:
6px
;
font-size
:
14px
;
}
}
}
.btn-remove
{
.btn-remove
{
color
:
$white-light
;
color
:
$white-light
;
}
}
.btn-group
{
&
.open
{
.btn-default
{
background-color
:
$white-normal
;
border-color
:
$border-white-normal
;
&
:hover
{
}
}
}
}
}
}
.build-link
{
.build-link
{
...
@@ -104,4 +127,8 @@
...
@@ -104,4 +127,8 @@
color
:
$gl-dark-link-color
;
color
:
$gl-dark-link-color
;
}
}
}
}
.btn-group.open
.dropdown-toggle
{
box-shadow
:
none
;
}
}
}
app/views/projects/ci/pipelines/_pipeline.html.haml
View file @
191687a1
...
@@ -57,16 +57,26 @@
...
@@ -57,16 +57,26 @@
.controls.hidden-xs.pull-right
.controls.hidden-xs.pull-right
-
artifacts
=
pipeline
.
builds
.
latest
.
select
{
|
b
|
b
.
artifacts?
}
-
artifacts
=
pipeline
.
builds
.
latest
.
select
{
|
b
|
b
.
artifacts?
}
-
if
artifacts
.
present?
-
if
artifacts
.
present?
.
dropdown.inline.build-artifacts
.
btn-group.inline
%button
.dropdown-toggle.btn
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
.btn-group
=
icon
(
'download'
)
%a
.dropdown-toggle.btn.btn-default
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%b
.caret
=
icon
(
"play"
)
%ul
.dropdown-menu.dropdown-menu-align-righ
t
%b
.care
t
-
artifacts
.
each
do
|
build
|
%ul
.dropdown-menu.dropdown-menu-align-right
%li
%li
=
link_to
download_namespace_project_build_artifacts_path
(
@project
.
namespace
,
@project
,
build
),
rel:
'nofollow'
do
=
link_to
'#'
do
=
icon
(
"download"
)
=
icon
(
"play"
)
%span
Download '
#{
build
.
name
}
' artifacts
%span
Deploy to production
.btn-group
%a
.dropdown-toggle.btn.btn-default.build-artifacts
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
=
icon
(
"download"
)
%b
.caret
%ul
.dropdown-menu.dropdown-menu-align-right
-
artifacts
.
each
do
|
build
|
%li
=
link_to
download_namespace_project_build_artifacts_path
(
@project
.
namespace
,
@project
,
build
),
rel:
'nofollow'
do
=
icon
(
"download"
)
%span
Download '
#{
build
.
name
}
' artifacts
-
if
can?
(
current_user
,
:update_pipeline
,
@project
)
-
if
can?
(
current_user
,
:update_pipeline
,
@project
)
-
if
pipeline
.
retryable?
-
if
pipeline
.
retryable?
...
...
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