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
Jérome Perrin
gitlab-ce
Commits
af42fa23
Commit
af42fa23
authored
May 25, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added external link icon
parent
f59b9778
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
4 deletions
+38
-4
app/assets/javascripts/ide/components/jobs/item.vue
app/assets/javascripts/ide/components/jobs/item.vue
+8
-1
app/assets/javascripts/ide/components/pipelines/list.vue
app/assets/javascripts/ide/components/pipelines/list.vue
+14
-3
app/assets/javascripts/ide/stores/modules/pipelines/getters.js
...ssets/javascripts/ide/stores/modules/pipelines/getters.js
+3
-0
app/assets/stylesheets/pages/repo.scss
app/assets/stylesheets/pages/repo.scss
+13
-0
No files found.
app/assets/javascripts/ide/components/jobs/item.vue
View file @
af42fa23
<
script
>
import
Icon
from
'
../../../vue_shared/components/icon.vue
'
;
import
CiIcon
from
'
../../../vue_shared/components/ci_icon.vue
'
;
export
default
{
components
:
{
Icon
,
CiIcon
,
},
props
:
{
...
...
@@ -31,8 +33,13 @@ export default {
<a
:href=
"job.path"
target=
"_blank"
v-text=
"jobId
"
class=
"ide-external-link
"
>
{{
jobId
}}
<icon
name=
"external-link"
:size=
"12"
/>
</a>
</span>
</div>
...
...
app/assets/javascripts/ide/components/pipelines/list.vue
View file @
af42fa23
<
script
>
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
LoadingIcon
from
'
../../../vue_shared/components/loading_icon.vue
'
;
import
Icon
from
'
../../../vue_shared/components/icon.vue
'
;
import
CiIcon
from
'
../../../vue_shared/components/ci_icon.vue
'
;
import
Tabs
from
'
../../../vue_shared/components/tabs/tabs
'
;
import
Tab
from
'
../../../vue_shared/components/tabs/tab.vue
'
;
...
...
@@ -9,13 +10,14 @@ import JobsList from '../jobs/list.vue';
export
default
{
components
:
{
LoadingIcon
,
Icon
,
CiIcon
,
Tabs
,
Tab
,
JobsList
,
},
computed
:
{
...
mapGetters
(
'
pipelines
'
,
[
'
jobsCount
'
,
'
failedJobsCount
'
,
'
failedStages
'
]),
...
mapGetters
(
'
pipelines
'
,
[
'
jobsCount
'
,
'
failedJobsCount
'
,
'
failedStages
'
,
'
pipelineFailed
'
]),
...
mapState
(
'
pipelines
'
,
[
'
isLoadingPipeline
'
,
'
latestPipeline
'
,
'
stages
'
,
'
isLoadingJobs
'
]),
},
created
()
{
...
...
@@ -49,13 +51,20 @@ export default {
<a
:href=
"latestPipeline.path"
target=
"_blank"
class=
"ide-external-link"
>
#
{{
latestPipeline
.
id
}}
<icon
name=
"external-link"
:size=
"12"
/>
</a>
</span>
</header>
<tabs>
<tab
active
>
<tab
:active=
"!pipelineFailed"
>
<template
slot=
"title"
>
Jobs
<span
...
...
@@ -70,7 +79,9 @@ export default {
:stages=
"stages"
/>
</tab>
<tab>
<tab
:active=
"pipelineFailed"
>
<
template
slot=
"title"
>
Failed Jobs
<span
...
...
app/assets/javascripts/ide/stores/modules/pipelines/getters.js
View file @
af42fa23
export
const
hasLatestPipeline
=
state
=>
!
state
.
isLoadingPipeline
&&
!!
state
.
latestPipeline
;
export
const
pipelineFailed
=
state
=>
state
.
latestPipeline
&&
state
.
latestPipeline
.
details
.
status
.
text
===
'
failed
'
;
export
const
failedStages
=
state
=>
state
.
stages
.
filter
(
stage
=>
stage
.
status
.
text
===
'
failed
'
).
map
(
stage
=>
({
...
stage
,
...
...
app/assets/stylesheets/pages/repo.scss
View file @
af42fa23
...
...
@@ -1135,3 +1135,16 @@
white-space
:
nowrap
;
}
}
.ide-external-link
{
svg
{
display
:
none
;
}
&
:hover
,
&
:focus
{
svg
{
display
:
inline-block
;
}
}
}
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