debian-mirror-gitlab/app/assets/javascripts/pipelines/components/empty_state.vue

59 lines
1.4 KiB
Vue
Raw Normal View History

2017-08-17 22:00:37 +05:30
<script>
2019-02-13 22:33:31 +05:30
import { GlButton } from '@gitlab/ui';
2018-11-08 19:23:39 +05:30
export default {
name: 'PipelinesEmptyState',
2019-02-13 22:33:31 +05:30
components: {
GlButton,
},
2018-11-08 19:23:39 +05:30
props: {
helpPagePath: {
type: String,
required: true,
2017-08-17 22:00:37 +05:30
},
2018-11-08 19:23:39 +05:30
emptyStateSvgPath: {
type: String,
required: true,
},
canSetCi: {
type: Boolean,
required: true,
},
},
};
2017-08-17 22:00:37 +05:30
</script>
<template>
<div class="row empty-state js-empty-state">
2018-11-08 19:23:39 +05:30
<div class="col-12">
2019-02-13 22:33:31 +05:30
<div class="svg-content svg-250"><img :src="emptyStateSvgPath" /></div>
2017-08-17 22:00:37 +05:30
</div>
2018-11-08 19:23:39 +05:30
<div class="col-12">
2017-08-17 22:00:37 +05:30
<div class="text-content">
2018-03-27 19:54:05 +05:30
<template v-if="canSetCi">
2019-02-13 22:33:31 +05:30
<h4 class="text-center">{{ s__('Pipelines|Build with confidence') }}</h4>
2018-03-27 19:54:05 +05:30
<p>
2019-02-13 22:33:31 +05:30
{{
s__(`Pipelines|Continuous Integration can help
2018-03-27 19:54:05 +05:30
catch bugs by running your tests automatically,
while Continuous Deployment can help you deliver
2019-02-13 22:33:31 +05:30
code to your product environment.`)
}}
2018-03-27 19:54:05 +05:30
</p>
<div class="text-center">
2019-02-13 22:33:31 +05:30
<gl-button :href="helpPagePath" variant="primary" class="js-get-started-pipelines">
2018-03-27 19:54:05 +05:30
{{ s__('Pipelines|Get started with Pipelines') }}
2019-02-13 22:33:31 +05:30
</gl-button>
2018-03-27 19:54:05 +05:30
</div>
</template>
2019-02-13 22:33:31 +05:30
<p v-else class="text-center">
2018-03-27 19:54:05 +05:30
{{ s__('Pipelines|This project is not currently set up to run pipelines.') }}
2017-08-17 22:00:37 +05:30
</p>
</div>
</div>
</div>
</template>