2018-11-08 19:23:39 +05:30
|
|
|
<script>
|
2020-11-24 15:15:51 +05:30
|
|
|
import { GlIcon } from '@gitlab/ui';
|
2022-06-21 17:19:12 +05:30
|
|
|
import CiIcon from '~/vue_shared/components/ci_icon.vue';
|
2018-11-08 19:23:39 +05:30
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
2020-11-24 15:15:51 +05:30
|
|
|
GlIcon,
|
2018-11-08 19:23:39 +05:30
|
|
|
CiIcon,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
job: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
jobId() {
|
|
|
|
return `#${this.job.id}`;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="d-flex align-items-center">
|
2022-07-23 23:45:48 +05:30
|
|
|
<ci-icon is-borderless :status="job.status" :size="24" class="d-flex" />
|
2020-06-23 00:09:42 +05:30
|
|
|
<span class="gl-ml-3">
|
2018-11-08 19:23:39 +05:30
|
|
|
{{ job.name }}
|
2020-11-24 15:15:51 +05:30
|
|
|
<a
|
|
|
|
v-if="job.path"
|
|
|
|
:href="job.path"
|
|
|
|
target="_blank"
|
|
|
|
class="ide-external-link gl-relative"
|
|
|
|
data-testid="description-detail-link"
|
|
|
|
>
|
|
|
|
{{ jobId }} <gl-icon :size="12" name="external-link" />
|
2018-11-08 19:23:39 +05:30
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</template>
|