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
ddfe8bc8
Commit
ddfe8bc8
authored
Jan 20, 2021
by
yo
Committed by
Yogi
Jan 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add btn-default class for btn-build buttons
parent
e1c35852
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/views/projects/artifacts/_artifact.html.haml
app/views/projects/artifacts/_artifact.html.haml
+2
-2
app/views/projects/ci/builds/_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+3
-3
No files found.
app/views/projects/artifacts/_artifact.html.haml
View file @
ddfe8bc8
...
...
@@ -50,10 +50,10 @@
.table-action-buttons
.btn-group
-
if
can?
(
current_user
,
:read_build
,
@project
)
=
link_to
download_project_job_artifacts_path
(
@project
,
artifact
.
job
),
rel:
'nofollow'
,
download:
''
,
title:
_
(
'Download artifacts'
),
data:
{
placement:
'top'
,
container:
'body'
},
ref:
'tooltip'
,
aria:
{
label:
_
(
'Download artifacts'
)
},
class:
'gl-button btn btn-build has-tooltip ml-0'
do
=
link_to
download_project_job_artifacts_path
(
@project
,
artifact
.
job
),
rel:
'nofollow'
,
download:
''
,
title:
_
(
'Download artifacts'
),
data:
{
placement:
'top'
,
container:
'body'
},
ref:
'tooltip'
,
aria:
{
label:
_
(
'Download artifacts'
)
},
class:
'gl-button btn btn-
default btn-
build has-tooltip ml-0'
do
=
sprite_icon
(
'download'
)
=
link_to
browse_project_job_artifacts_path
(
@project
,
artifact
.
job
),
rel:
'nofollow'
,
title:
_
(
'Browse artifacts'
),
data:
{
placement:
'top'
,
container:
'body'
},
ref:
'tooltip'
,
aria:
{
label:
_
(
'Browse artifacts'
)
},
class:
'gl-button btn btn-build has-tooltip'
do
=
link_to
browse_project_job_artifacts_path
(
@project
,
artifact
.
job
),
rel:
'nofollow'
,
title:
_
(
'Browse artifacts'
),
data:
{
placement:
'top'
,
container:
'body'
},
ref:
'tooltip'
,
aria:
{
label:
_
(
'Browse artifacts'
)
},
class:
'gl-button btn btn-
default btn-
build has-tooltip'
do
=
sprite_icon
(
'folder-open'
)
-
if
can?
(
current_user
,
:destroy_artifacts
,
@project
)
...
...
app/views/projects/ci/builds/_build.html.haml
View file @
ddfe8bc8
...
...
@@ -99,11 +99,11 @@
%td
.gl-display-flex
-
if
can?
(
current_user
,
:read_job_artifacts
,
job
)
&&
job
.
artifacts?
=
link_to
download_project_job_artifacts_path
(
job
.
project
,
job
),
rel:
'nofollow'
,
download:
''
,
title:
_
(
'Download artifacts'
),
class:
'btn btn-build gl-button btn-icon btn-svg'
do
=
link_to
download_project_job_artifacts_path
(
job
.
project
,
job
),
rel:
'nofollow'
,
download:
''
,
title:
_
(
'Download artifacts'
),
class:
'btn btn-build
btn-default
gl-button btn-icon btn-svg'
do
=
sprite_icon
(
'download'
)
-
if
can?
(
current_user
,
:update_build
,
job
)
-
if
job
.
active?
=
link_to
cancel_project_job_path
(
job
.
project
,
job
,
continue:
{
to:
request
.
fullpath
}),
method: :post
,
title:
_
(
'Cancel'
),
class:
'btn gl-button btn-build'
do
=
link_to
cancel_project_job_path
(
job
.
project
,
job
,
continue:
{
to:
request
.
fullpath
}),
method: :post
,
title:
_
(
'Cancel'
),
class:
'btn gl-button btn-build
btn-default
'
do
=
sprite_icon
(
'close'
)
-
elsif
job
.
scheduled?
.btn-group
...
...
@@ -125,7 +125,7 @@
=
sprite_icon
(
'time-out'
)
-
elsif
allow_retry
-
if
job
.
playable?
&&
!
admin
&&
can?
(
current_user
,
:update_build
,
job
)
=
link_to
play_project_job_path
(
job
.
project
,
job
,
return_to:
request
.
original_url
),
method: :post
,
title:
_
(
'Play'
),
class:
'btn gl-button btn-build'
do
=
link_to
play_project_job_path
(
job
.
project
,
job
,
return_to:
request
.
original_url
),
method: :post
,
title:
_
(
'Play'
),
class:
'btn gl-button btn-build
btn-default
'
do
=
custom_icon
(
'icon_play'
)
-
elsif
job
.
retryable?
=
link_to
retry_project_job_path
(
job
.
project
,
job
,
return_to:
request
.
original_url
),
method: :post
,
title:
_
(
'Retry'
),
class:
'btn btn-build gl-button btn-icon btn-default'
do
...
...
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