Commit 1725355e authored by Andrew Fontaine's avatar Andrew Fontaine

Translate "by <AVATAR LINK>" in Environments

Some long time technical debt clean up as part of improving the environments
page, as this should have been translated a long time ago.
parent 371707dc
<script> <script>
/* eslint-disable @gitlab/vue-require-i18n-strings */ import { GlTooltipDirective, GlIcon, GlLink, GlSprintf } from '@gitlab/ui';
import { GlTooltipDirective, GlIcon, GlLink } from '@gitlab/ui';
import { isEmpty } from 'lodash'; import { isEmpty } from 'lodash';
import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';
import { __, s__, sprintf } from '~/locale'; import { __, s__, sprintf } from '~/locale';
...@@ -32,6 +31,7 @@ export default { ...@@ -32,6 +31,7 @@ export default {
ExternalUrlComponent, ExternalUrlComponent,
GlIcon, GlIcon,
GlLink, GlLink,
GlSprintf,
MonitoringButtonComponent, MonitoringButtonComponent,
PinComponent, PinComponent,
DeleteComponent, DeleteComponent,
...@@ -647,7 +647,8 @@ export default { ...@@ -647,7 +647,8 @@ export default {
</span> </span>
<span v-if="!isFolder && deploymentHasUser" class="text-break-word"> <span v-if="!isFolder && deploymentHasUser" class="text-break-word">
by <gl-sprintf :message="s__('Environments|by %{avatar}')">
<template #avatar>
<user-avatar-link <user-avatar-link
:link-href="deploymentUser.web_url" :link-href="deploymentUser.web_url"
:img-src="deploymentUser.avatar_url" :img-src="deploymentUser.avatar_url"
...@@ -655,6 +656,8 @@ export default { ...@@ -655,6 +656,8 @@ export default {
:tooltip-text="deploymentUser.username" :tooltip-text="deploymentUser.username"
class="js-deploy-user-container float-none" class="js-deploy-user-container float-none"
/> />
</template>
</gl-sprintf>
</span> </span>
<div v-if="showNoDeployments" class="commit-title table-mobile-content"> <div v-if="showNoDeployments" class="commit-title table-mobile-content">
...@@ -743,13 +746,16 @@ export default { ...@@ -743,13 +746,16 @@ export default {
</div> </div>
<div class="gl-display-flex"> <div class="gl-display-flex">
<span v-if="upcomingDeployment.user" class="text-break-word"> <span v-if="upcomingDeployment.user" class="text-break-word">
by <gl-sprintf :message="s__('Environments|by %{avatar}')">
<template #avatar>
<user-avatar-link <user-avatar-link
:link-href="upcomingDeployment.user.web_url" :link-href="upcomingDeployment.user.web_url"
:img-src="upcomingDeployment.user.avatar_url" :img-src="upcomingDeployment.user.avatar_url"
:img-alt="upcomingDeploymentUserImageAltDescription" :img-alt="upcomingDeploymentUserImageAltDescription"
:tooltip-text="upcomingDeployment.user.username" :tooltip-text="upcomingDeployment.user.username"
/> />
</template>
</gl-sprintf>
</span> </span>
</div> </div>
</div> </div>
......
...@@ -12911,6 +12911,9 @@ msgstr "" ...@@ -12911,6 +12911,9 @@ msgstr ""
msgid "Environments|Your feedback helps GitLab make environments better for you and other users. Participate and enter a sweepstake to win a USD 30 gift card." msgid "Environments|Your feedback helps GitLab make environments better for you and other users. Participate and enter a sweepstake to win a USD 30 gift card."
msgstr "" msgstr ""
msgid "Environments|by %{avatar}"
msgstr ""
msgid "Environments|protected" msgid "Environments|protected"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment