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
117ce36d
Commit
117ce36d
authored
Jan 25, 2021
by
pburdette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use gitlab-ui components
Refactor component to use code we already have.
parent
ca797f4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
app/assets/javascripts/jobs/components/artifacts_block.vue
app/assets/javascripts/jobs/components/artifacts_block.vue
+14
-15
No files found.
app/assets/javascripts/jobs/components/artifacts_block.vue
View file @
117ce36d
<
script
>
import
{
GlIcon
,
GlLink
}
from
'
@gitlab/ui
'
;
import
{
Gl
Button
,
GlButtonGroup
,
Gl
Icon
,
GlLink
}
from
'
@gitlab/ui
'
;
import
TimeagoTooltip
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
timeagoMixin
from
'
~/vue_shared/mixins/timeago
'
;
export
default
{
components
:
{
TimeagoTooltip
,
GlButton
,
GlButtonGroup
,
GlIcon
,
GlLink
,
TimeagoTooltip
,
},
mixins
:
[
timeagoMixin
],
props
:
{
...
...
@@ -36,7 +38,7 @@ export default {
</
script
>
<
template
>
<div
class=
"block"
>
<div
class=
"title font-weight-bold"
>
{{
s__
(
'
Job|Job artifacts
'
)
}}
</div>
<div
class=
"title
gl-
font-weight-bold"
>
{{
s__
(
'
Job|Job artifacts
'
)
}}
</div>
<p
v-if=
"isExpired || willExpire"
class=
"build-detail-row"
...
...
@@ -61,32 +63,29 @@ export default {
)
}}
</span>
</p>
<
div
class=
"btn-group d-flex gl-mt-3"
role=
"group
"
>
<gl-
link
<
gl-button-group
class=
"gl-display-flex gl-mt-3
"
>
<gl-
button
v-if=
"artifact.keep_path"
:href=
"artifact.keep_path"
class=
"btn btn-sm btn-default"
data-method=
"post"
data-testid=
"keep-artifacts"
>
{{
s__
(
'
Job|Keep
'
)
}}
</gl-
link
>
{{
s__
(
'
Job|Keep
'
)
}}
</gl-
button
>
<gl-
link
<gl-
button
v-if=
"artifact.download_path"
:href=
"artifact.download_path"
class=
"btn btn-sm btn-default"
download
rel=
"nofollow"
data-testid=
"download-artifacts"
>
{{
s__
(
'
Job|Download
'
)
}}
</gl-link
download
>
{{
s__
(
'
Job|Download
'
)
}}
</gl-button
>
<gl-
link
<gl-
button
v-if=
"artifact.browse_path"
:href=
"artifact.browse_path"
class=
"btn btn-sm btn-default"
data-testid=
"browse-artifacts"
data-qa-selector=
"browse_artifacts_button"
>
{{
s__
(
'
Job|Browse
'
)
}}
</gl-
link
>
{{
s__
(
'
Job|Browse
'
)
}}
</gl-
button
>
</
div
>
</
gl-button-group
>
</div>
</
template
>
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