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="(issue, 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-11-16 20:07:38 +00:00
|
|
|
<user-avatar-image :img-src="issue.author.avatarUrl" />
|
2017-09-26 10:47:19 +00:00
|
|
|
<h5 class="item-title issue-title">
|
2018-11-16 20:07:38 +00:00
|
|
|
<a :href="issue.url" class="issue-title"> {{ issue.title }} </a>
|
2017-09-26 10:47:19 +00:00
|
|
|
</h5>
|
2018-11-16 20:07:38 +00:00
|
|
|
<a :href="issue.url" class="issue-link">#{{ issue.iid }}</a> ·
|
2017-09-26 10:47:19 +00:00
|
|
|
<span>
|
|
|
|
{{ s__('OpenedNDaysAgo|Opened') }}
|
2018-11-16 20:07:38 +00:00
|
|
|
<a :href="issue.url" class="issue-date">{{ issue.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="issue.author.webUrl" class="issue-author-link"> {{ issue.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="issue.totalTime" /></div>
|
2017-09-26 10:47:19 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</template>
|