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

empty_state.vue « components « environments « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ca2ac4c3c53e0b36fb3c933e5afe76c7ddf1ba02 (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
44
45
<script>
export default {
  name: 'EnvironmentsEmptyState',
  props: {
    newPath: {
      type: String,
      required: true,
    },
    canCreateEnvironment: {
      type: Boolean,
      required: true,
    },
    helpPath: {
      type: String,
      required: true,
    },
  },
};
</script>
<template>
  <div class="empty-state">
    <div class="text-content">
      <h4 class="blank-state-title js-blank-state-title">
        {{ s__("Environments|You don't have any environments right now") }}
      </h4>
      <p class="blank-state-text">
        {{
          s__(`Environments|Environments are places where
        code gets deployed, such as staging or production.`)
        }}
        <a :href="helpPath"> {{ s__('Environments|Read more about environments') }} </a>
      </p>

      <div class="text-center">
        <a
          v-if="canCreateEnvironment"
          :href="newPath"
          class="btn btn-success js-new-environment-button"
        >
          {{ s__('Environments|New environment') }}
        </a>
      </div>
    </div>
  </div>
</template>