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
d61a27d5
Commit
d61a27d5
authored
May 24, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added job item component
parent
76ffde63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
9 deletions
+31
-9
app/assets/javascripts/ide/components/jobs/item.vue
app/assets/javascripts/ide/components/jobs/item.vue
+26
-0
app/assets/javascripts/ide/components/jobs/stage.vue
app/assets/javascripts/ide/components/jobs/stage.vue
+5
-9
No files found.
app/assets/javascripts/ide/components/jobs/item.vue
0 → 100644
View file @
d61a27d5
<
script
>
import
CiIcon
from
'
../../../vue_shared/components/ci_icon.vue
'
;
export
default
{
components
:
{
CiIcon
,
},
props
:
{
job
:
{
type
:
Object
,
required
:
true
,
},
},
};
</
script
>
<
template
>
<div>
<ci-icon
:status=
"job.status"
/>
{{
job
.
name
}}
<a
:href=
"job.build_path"
target=
"_blank"
>
#
{{
job
.
id
}}
</a>
</div>
</
template
>
app/assets/javascripts/ide/components/jobs/stage.vue
View file @
d61a27d5
...
...
@@ -3,12 +3,14 @@ import { mapActions } from 'vuex';
import
Icon
from
'
../../../vue_shared/components/icon.vue
'
;
import
CiIcon
from
'
../../../vue_shared/components/ci_icon.vue
'
;
import
LoadingIcon
from
'
../../../vue_shared/components/loading_icon.vue
'
;
import
Item
from
'
./item.vue
'
;
export
default
{
components
:
{
Icon
,
CiIcon
,
LoadingIcon
,
Item
,
},
props
:
{
stage
:
{
...
...
@@ -62,17 +64,11 @@ export default {
v-if=
"stage.isLoading && !stage.jobs.length"
/>
<template
v-else
>
<
div
<
item
v-for=
"job in stage.jobs"
:key=
"job.id"
>
<ci-icon
:status=
"job.status"
/>
{{
job
.
name
}}
<a
:href=
"job.build_path"
target=
"_blank"
>
#
{{
job
.
id
}}
</a>
</div>
:job=
"job"
/>
</
template
>
</div>
</div>
...
...
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