Add translation, linkify avatar

This commit is contained in:
Matt Rider 2019-04-11 21:22:33 -03:00
parent 60c56f8872
commit 8f32df2597
2 changed files with 10 additions and 5 deletions

View File

@ -15,7 +15,8 @@
"followers": "Followers",
"following": "Following",
"shouted": "Shouted",
"commented": "Commented"
"commented": "Commented",
"socialMedia": "Where else can I find"
},
"search": {
"placeholder": "Search",

View File

@ -203,6 +203,10 @@
</template>
</ds-card>
<ds-space />
<ds-space
v-if="user.socialMedia && user.socialMedia.length"
margin="x-small"
/>
<ds-card style="position: relative; height: auto;">
<ds-space
v-if="user.socialMedia && user.socialMedia.length"
@ -212,7 +216,7 @@
tag="h5"
color="soft"
>
Where else can I find {{ user.name | truncate(15) }}?
{{ $t('profile.socialMedia') }} {{ user.name | truncate(15) }}?
</ds-text>
<template v-if="user.socialMedia && user.socialMedia.length">
<ds-space
@ -221,10 +225,10 @@
margin="x-small"
>
<!-- TODO: find better solution for rendering errors -->
<a :href="link.url">
<ds-avatar
:image="link.favicon"
/>
<a :href="link.url">
{{ link.username }}
</a>
</ds-space>