debian-mirror-gitlab/app/assets/javascripts/ide/components/jobs/detail/description.vue

41 lines
812 B
Vue
Raw Normal View History

2018-11-08 19:23:39 +05:30
<script>
2020-11-24 15:15:51 +05:30
import { GlIcon } from '@gitlab/ui';
2018-11-08 19:23:39 +05:30
import CiIcon from '../../../../vue_shared/components/ci_icon.vue';
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">
2019-02-15 15:39:39 +05:30
<ci-icon :status="job.status" :borderless="true" :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>