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

64 lines
1.5 KiB
Vue
Raw Normal View History

<script>
2017-12-07 15:03:32 +00:00
export default {
name: 'PipelinesEmptyState',
2017-12-07 15:03:32 +00:00
props: {
helpPagePath: {
type: String,
required: true,
},
emptyStateSvgPath: {
type: String,
required: true,
},
canSetCi: {
type: Boolean,
required: true,
},
},
2017-12-07 15:03:32 +00:00
};
</script>
<template>
<div class="row empty-state js-empty-state">
2018-04-09 16:45:38 +00:00
<div class="col-12">
2017-12-07 15:03:32 +00:00
<div class="svg-content svg-250">
<img :src="emptyStateSvgPath" />
</div>
</div>
2018-04-09 16:45:38 +00:00
<div class="col-12">
<div class="text-content">
<template v-if="canSetCi">
<h4 class="text-center">
{{ s__('Pipelines|Build with confidence') }}
</h4>
<p>
2018-05-25 06:36:40 +00:00
{{ s__(`Pipelines|Continuous Integration can help
catch bugs by running your tests automatically,
while Continuous Deployment can help you deliver
code to your product environment.`) }}
</p>
<div class="text-center">
<a
:href="helpPagePath"
2018-03-05 18:40:04 +00:00
class="btn btn-primary js-get-started-pipelines"
>
{{ s__('Pipelines|Get started with Pipelines') }}
</a>
</div>
</template>
<p
v-else
class="text-center"
>
{{ s__('Pipelines|This project is not currently set up to run pipelines.') }}
</p>
</div>
</div>
</div>
</template>