Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | 3x | <script>
import { GlAlert, GlButton, GlSprintf } from '@gitlab/ui';
import { __ } from '~/locale';
export const i18n = {
title: __('Some changes are not shown.'),
plainDiff: __('Plain diff'),
emailPatch: __('Patches'),
};
export default {
i18n,
components: {
GlAlert,
GlButton,
GlSprintf,
},
props: {
total: {
type: String,
required: true,
},
visible: {
type: Number,
required: true,
},
plainDiffPath: {
type: String,
required: true,
},
emailPatchPath: {
type: String,
required: true,
},
},
};
</script>
<template>
<gl-alert
variant="warning"
class="gl-mx-5 gl-mb-4 gl-mt-3"
:title="$options.i18n.title"
:dismissible="false"
>
<gl-sprintf
:message="
sprintf(
__(
'For a faster browsing experience, only %{strongStart}%{visible} of %{total}%{strongEnd} files are shown. Download one of the files below to see all changes.',
),
{ visible, total } /* eslint-disable-line @gitlab/vue-no-new-non-primitive-in-template */,
)
"
>
<template #strong="{ content }">
<strong>{{ content }}</strong>
</template>
</gl-sprintf>
<template #actions>
<gl-button :href="plainDiffPath" class="gl-mr-3 gl-alert-action">
{{ $options.i18n.plainDiff }}
</gl-button>
<gl-button :href="emailPatchPath" class="gl-alert-action">
{{ $options.i18n.emailPatch }}
</gl-button>
</template>
</gl-alert>
</template>
|