2017-09-26 10:47:19 +00:00
|
|
|
<script>
|
2018-10-10 06:09:55 +00:00
|
|
|
import userAvatarImage from '../../vue_shared/components/user_avatar/user_avatar_image.vue';
|
|
|
|
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: {
|
|
|
|
userAvatarImage,
|
|
|
|
limitWarning,
|
|
|
|
totalTime,
|
|
|
|
},
|
|
|
|
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 12:56:55 +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="(mergeRequest, i) in items" :key="i" class="stage-event-item">
|
2017-09-26 10:47:19 +00:00
|
|
|
<div class="item-details">
|
|
|
|
<!-- FIXME: Pass an alt attribute here for accessibility -->
|
2018-01-05 12:56:55 +00:00
|
|
|
<user-avatar-image :img-src="mergeRequest.author.avatarUrl" />
|
2019-09-18 14:02:45 +00:00
|
|
|
<h5 class="item-title merge-request-title">
|
2018-11-16 20:07:38 +00:00
|
|
|
<a :href="mergeRequest.url"> {{ mergeRequest.title }} </a>
|
2017-09-26 10:47:19 +00:00
|
|
|
</h5>
|
2018-11-16 20:07:38 +00:00
|
|
|
<a :href="mergeRequest.url" class="issue-link"> !{{ mergeRequest.iid }} </a> ·
|
2017-09-26 10:47:19 +00:00
|
|
|
<span>
|
|
|
|
{{ s__('OpenedNDaysAgo|Opened') }}
|
2018-11-16 20:07:38 +00:00
|
|
|
<a :href="mergeRequest.url" class="issue-date"> {{ mergeRequest.createdAt }} </a>
|
2017-09-26 10:47:19 +00:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
{{ s__('ByAuthor|by') }}
|
2018-11-16 20:07:38 +00:00
|
|
|
<a :href="mergeRequest.author.webUrl" class="issue-author-link">
|
2018-01-05 12:56:55 +00:00
|
|
|
{{ mergeRequest.author.name }}
|
|
|
|
</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="mergeRequest.totalTime" /></div>
|
2017-09-26 10:47:19 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</template>
|