summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/registry/explorer/components/details_page/details_header.vue
blob: c254dd05aa4cf9d5cfa2d860032c103853679603 (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
<script>
import { GlSprintf } from '@gitlab/ui';
import { DETAILS_PAGE_TITLE } from '../../constants/index';

export default {
  components: { GlSprintf },
  props: {
    imageName: {
      type: String,
      required: false,
      default: '',
    },
  },
  i18n: {
    DETAILS_PAGE_TITLE,
  },
};
</script>

<template>
  <div class="gl-display-flex gl-my-2 gl-align-items-center">
    <h4>
      <gl-sprintf :message="$options.i18n.DETAILS_PAGE_TITLE">
        <template #imageName>
          {{ imageName }}
        </template>
      </gl-sprintf>
    </h4>
  </div>
</template>