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", "followers": "Followers",
"following": "Following", "following": "Following",
"shouted": "Shouted", "shouted": "Shouted",
"commented": "Commented" "commented": "Commented",
"socialMedia": "Where else can I find"
}, },
"search": { "search": {
"placeholder": "Search", "placeholder": "Search",

View File

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