gitlab-org--gitlab-foss/app/assets/javascripts/environments/components/empty_state.vue

46 lines
1.1 KiB
Vue
Raw Normal View History

2017-11-23 07:04:03 -05:00
<script>
export default {
name: 'EnvironmentsEmptyState',
props: {
newPath: {
type: String,
required: true,
2017-11-23 07:04:03 -05:00
},
canCreateEnvironment: {
type: Boolean,
required: true,
},
helpPath: {
type: String,
required: true,
},
},
};
2017-11-23 07:04:03 -05:00
</script>
<template>
2018-10-11 13:10:20 -04:00
<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>
2017-11-23 07:04:03 -05:00
<p class="blank-state-text">
2018-11-16 15:07:38 -05:00
{{
s__(`Environments|Environments are places where
code gets deployed, such as staging or production.`)
}}
<a :href="helpPath"> {{ s__('Environments|Read more about environments') }} </a>
2017-11-23 07:04:03 -05:00
</p>
2018-10-11 13:10:20 -04:00
<div class="text-center">
<a
v-if="canCreateEnvironment"
:href="newPath"
class="btn btn-success js-new-environment-button"
>
2018-11-16 15:07:38 -05:00
{{ s__('Environments|New environment') }}
2018-10-11 13:10:20 -04:00
</a>
</div>
2017-11-23 07:04:03 -05:00
</div>
</div>
</template>