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

new_cluster.vue « components « clusters « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 41a33a8459fc04c5ed2e4d97d8ca7e75bdc2eb11 (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
<script>
import { GlLink, GlSprintf } from '@gitlab/ui';
import { helpPagePath } from '~/helpers/help_page_helper';
import { s__ } from '~/locale';

export default {
  i18n: {
    title: s__('ClusterIntegration|Enter your Kubernetes cluster certificate details'),
    information: s__(
      'ClusterIntegration|Enter details about your cluster. %{linkStart}How do I use a certificate to connect to my cluster?%{linkEnd}',
    ),
  },
  clusterConnectHelpPath: helpPagePath('user/project/clusters/add_existing_cluster'),
  components: {
    GlLink,
    GlSprintf,
  },
};
</script>

<template>
  <div class="gl-pt-4">
    <h4>{{ $options.i18n.title }}</h4>
    <p>
      <gl-sprintf :message="$options.i18n.information">
        <template #link="{ content }">
          <gl-link :href="$options.clusterConnectHelpPath">{{ content }}</gl-link>
        </template>
      </gl-sprintf>
    </p>
  </div>
</template>