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

45 lines
1.0 KiB
Vue
Raw Normal View History

2017-11-23 12:04:03 +00:00
<script>
export default {
2018-01-05 14:31:01 +00:00
name: 'EnvironmentsEmptyState',
2017-11-23 12:04:03 +00:00
props: {
newPath: {
type: String,
required: true,
},
canCreateEnvironment: {
type: Boolean,
required: true,
},
helpPath: {
type: String,
required: true,
},
},
};
</script>
<template>
<div class="blank-state-row">
<div class="blank-state-center">
<h2 class="blank-state-title js-blank-state-title">
2018-01-05 14:31:01 +00:00
{{ s__("Environments|You don't have any environments right now.") }}
2017-11-23 12:04:03 +00:00
</h2>
<p class="blank-state-text">
2018-01-08 20:01:49 +00:00
{{ s__(`Environments|Environments are places where
code gets deployed, such as staging or production.`) }}
2017-11-23 12:04:03 +00:00
<br />
<a :href="helpPath">
2018-01-05 14:31:01 +00:00
{{ s__("Environments|Read more about environments") }}
2017-11-23 12:04:03 +00:00
</a>
</p>
<a
v-if="canCreateEnvironment"
:href="newPath"
class="btn btn-success js-new-environment-button"
2018-01-05 14:31:01 +00:00
>
{{ s__("Environments|New environment") }}
2017-11-23 12:04:03 +00:00
</a>
</div>
</div>
</template>