diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index 2d6bfb722..8b28b7c38 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -332,6 +332,18 @@ export default { ) ) }, + formattedBirthday() { + const browserLocale = localeService.internalToBrowserLocale( + this.$i18n.locale, + ) + return ( + this.user.created_at && + new Date(Date.parse(this.user.created_at)).toLocaleDateString( + browserLocale, + { timeZone: 'UTC', day: 'numeric', month: 'long', year: 'numeric' }, + ) + ) + }, // Editable stuff avatarImgSrc() { diff --git a/src/components/user_card/user_card.scss b/src/components/user_card/user_card.scss index 93a9ed2e7..524ba334e 100644 --- a/src/components/user_card/user_card.scss +++ b/src/components/user_card/user_card.scss @@ -413,6 +413,10 @@ text-overflow: ellipsis; overflow: hidden; margin: 0; + + .svg-inline--fa { + color: var(--text); + } } dd, dt { diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue index 49675779e..05e2ebe2e 100644 --- a/src/components/user_card/user_card.vue +++ b/src/components/user_card/user_card.vue @@ -546,39 +546,61 @@
{{ $t('user_card.followers') }}
- +
+
+ {{ $t('user_card.joined') }} +
+ {{ ' ' }} +
+ {{ formattedBirthday }} +
+
+