debian-mirror-gitlab/app/assets/javascripts/releases/components/releases_empty_state.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
1.2 KiB
Vue
Raw Normal View History

2021-09-04 01:27:46 +05:30
<script>
2023-04-23 21:23:45 +05:30
import { GlEmptyState } from '@gitlab/ui';
import { s__ } from '~/locale';
2021-09-04 01:27:46 +05:30
export default {
name: 'ReleasesEmptyState',
components: {
GlEmptyState,
},
2023-04-23 21:23:45 +05:30
inject: ['documentationPath', 'illustrationPath', 'newReleasePath'],
2021-09-04 01:27:46 +05:30
i18n: {
2023-04-23 21:23:45 +05:30
emptyStateTitle: s__('Release|Getting started with releases'),
emptyStateText: s__(
"Release|Releases are based on Git tags and mark specific points in a project's development history. They can contain information about the type of changes and can also deliver binaries, like compiled versions of your software.",
2021-09-04 01:27:46 +05:30
),
2023-04-23 21:23:45 +05:30
releasesDocumentation: s__('Release|Learn more about releases'),
moreInformation: s__('Release|More information'),
newRelease: s__('Release|Create a new release'),
2021-09-04 01:27:46 +05:30
},
};
</script>
<template>
2023-04-23 21:23:45 +05:30
<gl-empty-state
class="gl-layout-w-limited"
:title="$options.i18n.emptyStateTitle"
:description="$options.i18n.emptyStateText"
:svg-path="illustrationPath"
:primary-button-link="newReleasePath"
:primary-button-text="$options.i18n.newRelease"
:secondary-button-link="documentationPath"
:secondary-button-text="$options.i18n.releasesDocumentation"
/>
2021-09-04 01:27:46 +05:30
</template>