empty_state.vue 1.1 KB
Newer Older
F
Filipa Lacerda 已提交
1
<script>
2 3 4 5 6 7
export default {
  name: 'EnvironmentsEmptyState',
  props: {
    newPath: {
      type: String,
      required: true,
F
Filipa Lacerda 已提交
8
    },
9 10 11 12 13 14 15 16 17 18
    canCreateEnvironment: {
      type: Boolean,
      required: true,
    },
    helpPath: {
      type: String,
      required: true,
    },
  },
};
F
Filipa Lacerda 已提交
19 20
</script>
<template>
G
George Tsiolis 已提交
21 22 23 24 25
  <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>
F
Filipa Lacerda 已提交
26
      <p class="blank-state-text">
F
Filipa Lacerda 已提交
27
        {{ s__(`Environments|Environments are places where
G
George Tsiolis 已提交
28
        code gets deployed, such as staging or production.`) }}
F
Filipa Lacerda 已提交
29
        <a :href="helpPath">
F
Filipa Lacerda 已提交
30
          {{ s__("Environments|Read more about environments") }}
F
Filipa Lacerda 已提交
31 32 33
        </a>
      </p>

G
George Tsiolis 已提交
34 35 36 37 38 39 40 41 42
      <div class="text-center">
        <a
          v-if="canCreateEnvironment"
          :href="newPath"
          class="btn btn-success js-new-environment-button"
        >
          {{ s__("Environments|New environment") }}
        </a>
      </div>
F
Filipa Lacerda 已提交
43 44 45
    </div>
  </div>
</template>