debian-mirror-gitlab/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_closed.vue

41 lines
1 KiB
Vue
Raw Normal View History

2018-03-17 18:26:18 +05:30
<script>
2020-05-24 23:13:21 +05:30
import MrWidgetAuthorTime from '../mr_widget_author_time.vue';
2018-12-13 13:39:08 +05:30
import statusIcon from '../mr_widget_status_icon.vue';
2018-03-17 18:26:18 +05:30
2018-12-13 13:39:08 +05:30
export default {
name: 'MRWidgetClosed',
components: {
MrWidgetAuthorTime,
statusIcon,
},
props: {
/* TODO: This is providing all store and service down when it
2018-03-17 18:26:18 +05:30
only needs metrics and targetBranch */
2018-12-13 13:39:08 +05:30
mr: {
type: Object,
required: true,
2018-03-17 18:26:18 +05:30
},
2018-12-13 13:39:08 +05:30
},
};
2018-03-17 18:26:18 +05:30
</script>
<template>
<div class="mr-widget-body media">
2019-02-15 15:39:39 +05:30
<status-icon status="warning" />
2018-03-17 18:26:18 +05:30
<div class="media-body">
<mr-widget-author-time
:action-text="s__('mrWidget|Closed by')"
:author="mr.metrics.closedBy"
:date-title="mr.metrics.closedAt"
:date-readable="mr.metrics.readableClosedAt"
/>
<section class="mr-info-list">
<p>
2019-02-15 15:39:39 +05:30
{{ s__('mrWidget|The changes were not merged into') }}
<a :href="mr.targetBranchPath" class="label-branch"> {{ mr.targetBranch }} </a>
2018-03-17 18:26:18 +05:30
</p>
</section>
</div>
</div>
</template>