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

59 lines
1.4 KiB
Vue
Raw Normal View History

<script>
2018-11-16 14:29:11 -05:00
import { GlButton } from '@gitlab/ui';
2018-11-09 17:42:24 -05:00
2018-06-27 10:28:05 -04:00
export default {
name: 'PipelinesEmptyState',
2018-11-09 17:42:24 -05:00
components: {
GlButton,
},
2018-06-27 10:28:05 -04:00
props: {
helpPagePath: {
type: String,
required: true,
},
2018-06-27 10:28:05 -04:00
emptyStateSvgPath: {
type: String,
required: true,
},
canSetCi: {
type: Boolean,
required: true,
},
},
};
</script>
<template>
<div class="row empty-state js-empty-state">
2018-04-09 12:45:38 -04:00
<div class="col-12">
2018-11-16 15:07:38 -05:00
<div class="svg-content svg-250"><img :src="emptyStateSvgPath" /></div>
</div>
2018-04-09 12:45:38 -04:00
<div class="col-12">
<div class="text-content">
<template v-if="canSetCi">
2018-11-16 15:07:38 -05:00
<h4 class="text-center">{{ s__('Pipelines|Build with confidence') }}</h4>
<p>
2018-11-16 15:07:38 -05:00
{{
s__(`Pipelines|Continuous Integration can help
catch bugs by running your tests automatically,
while Continuous Deployment can help you deliver
2018-11-16 15:07:38 -05:00
code to your product environment.`)
}}
</p>
<div class="text-center">
2018-11-16 15:07:38 -05:00
<gl-button :href="helpPagePath" variant="primary" class="js-get-started-pipelines">
{{ s__('Pipelines|Get started with Pipelines') }}
2018-11-09 17:42:24 -05:00
</gl-button>
</div>
</template>
2018-11-16 15:07:38 -05:00
<p v-else class="text-center">
{{ s__('Pipelines|This project is not currently set up to run pipelines.') }}
</p>
</div>
</div>
</div>
</template>