Welcome to mirror list, hosted at ThFree Co, Russian Federation.

commit_widget.vue « components « diffs « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5c7e84bd87cd44139cb2ed4d1cf1b3e3b644411d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<script>
import CommitItem from './commit_item.vue';

/**
 * CommitWidget
 *
 * -----------------------------------------------------------------
 * WARNING: Please keep changes up-to-date with the following files:
 * - `views/projects/merge_requests/diffs/_commit_widget.html.haml`
 * -----------------------------------------------------------------
 *
 * This Component was cloned from a HAML view. For the time being,
 * they coexist, but there is an issue to remove the duplication.
 * https://gitlab.com/gitlab-org/gitlab-foss/issues/51613
 *
 */
export default {
  components: {
    CommitItem,
  },
  props: {
    commit: {
      type: Object,
      required: true,
    },
    collapsible: {
      type: Boolean,
      required: false,
      default: true,
    },
  },
};
</script>

<template>
  <div class="info-well mw-100 mx-0">
    <div class="well-segment">
      <ul class="blob-commit-info">
        <commit-item :commit="commit" :collapsible="collapsible" />
      </ul>
    </div>
  </div>
</template>