2017-09-26 10:47:19 +00:00
|
|
|
<script>
|
2020-08-24 15:10:11 +00:00
|
|
|
import { GlIcon } from '@gitlab/ui';
|
2018-10-10 06:09:55 +00:00
|
|
|
import limitWarning from './limit_warning_component.vue';
|
|
|
|
import totalTime from './total_time_component.vue';
|
2017-09-26 10:47:19 +00:00
|
|
|
|
2018-10-10 06:09:55 +00:00
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
totalTime,
|
|
|
|
limitWarning,
|
2020-08-24 15:10:11 +00:00
|
|
|
GlIcon,
|
2018-10-10 06:09:55 +00:00
|
|
|
},
|
|
|
|
props: {
|
|
|
|
items: {
|
|
|
|
type: Array,
|
|
|
|
default: () => [],
|
2020-03-18 15:09:45 +00:00
|
|
|
required: false,
|
2017-09-26 10:47:19 +00:00
|
|
|
},
|
2018-10-10 06:09:55 +00:00
|
|
|
stage: {
|
|
|
|
type: Object,
|
|
|
|
default: () => ({}),
|
2020-03-18 15:09:45 +00:00
|
|
|
required: false,
|
2018-01-05 14:31:01 +00:00
|
|
|
},
|
2018-10-10 06:09:55 +00:00
|
|
|
},
|
|
|
|
};
|
2017-09-26 10:47:19 +00:00
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div class="events-description">
|
|
|
|
{{ stage.description }}
|
|
|
|
<limit-warning :count="items.length" />
|
|
|
|
</div>
|
|
|
|
<ul class="stage-event-list">
|
2018-11-16 20:07:38 +00:00
|
|
|
<li v-for="(build, i) in items" :key="i" class="stage-event-item item-build-component">
|
2017-09-26 10:47:19 +00:00
|
|
|
<div class="item-details">
|
|
|
|
<h5 class="item-title">
|
2020-10-06 15:08:33 +00:00
|
|
|
<span class="icon-build-status gl-text-green-500">
|
|
|
|
<gl-icon name="status_success" :size="14" />
|
|
|
|
</span>
|
2018-11-16 20:07:38 +00:00
|
|
|
<a :href="build.url" class="item-build-name"> {{ build.name }} </a> ·
|
|
|
|
<a :href="build.url" class="pipeline-id"> #{{ build.id }} </a>
|
2020-08-24 15:10:11 +00:00
|
|
|
<gl-icon :size="16" name="fork" />
|
2018-11-16 20:07:38 +00:00
|
|
|
<a :href="build.branch.url" class="ref-name"> {{ build.branch.name }} </a>
|
2020-10-06 15:08:33 +00:00
|
|
|
<span class="icon-branch gl-text-gray-400">
|
|
|
|
<gl-icon name="commit" :size="14" />
|
|
|
|
</span>
|
2018-11-16 20:07:38 +00:00
|
|
|
<a :href="build.commitUrl" class="commit-sha"> {{ build.shortSha }} </a>
|
2017-09-26 10:47:19 +00:00
|
|
|
</h5>
|
|
|
|
<span>
|
2018-11-16 20:07:38 +00:00
|
|
|
<a :href="build.url" class="issue-date"> {{ build.date }} </a>
|
2017-09-26 10:47:19 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
2018-11-16 20:07:38 +00:00
|
|
|
<div class="item-time"><total-time :time="build.totalTime" /></div>
|
2017-09-26 10:47:19 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</template>
|