diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-17 09:09:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-17 09:09:21 +0300 |
commit | 3c97422b098235bca250f738922dab9c861f0ee7 (patch) | |
tree | 5b3a1b25c5e203b6fb9ab569c578d745f93aff0a /app/assets/javascripts/releases | |
parent | 38c3d3255398d615cf93867cb82902c3d2cb65a5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/releases')
-rw-r--r-- | app/assets/javascripts/releases/components/release_block_header.vue | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/app/assets/javascripts/releases/components/release_block_header.vue b/app/assets/javascripts/releases/components/release_block_header.vue index 65b68c93e35..356fc0f3bf3 100644 --- a/app/assets/javascripts/releases/components/release_block_header.vue +++ b/app/assets/javascripts/releases/components/release_block_header.vue @@ -1,5 +1,5 @@ <script> -import { GlTooltipDirective, GlLink, GlBadge, GlButton } from '@gitlab/ui'; +import { GlTooltipDirective, GlLink, GlBadge, GlButton, GlIcon } from '@gitlab/ui'; import { setUrlParams } from '~/lib/utils/url_utility'; import { BACK_URL_PARAM } from '~/releases/constants'; @@ -9,6 +9,7 @@ export default { GlLink, GlBadge, GlButton, + GlIcon, }, directives: { GlTooltip: GlTooltipDirective, @@ -44,7 +45,19 @@ export default { <gl-link v-if="selfLink" :href="selfLink" class="font-size-inherit"> {{ release.name }} </gl-link> - <template v-else>{{ release.name }}</template> + <template v-else> + {{ release.name }} + <gl-icon + v-gl-tooltip + name="lock" + :title=" + __( + 'Private - Guest users are not allowed to view detailed release information like title and source code.', + ) + " + class="text-secondary gl-mb-2" + /> + </template> <gl-badge v-if="release.upcomingRelease" variant="warning" class="align-middle">{{ __('Upcoming Release') }}</gl-badge> |