This commit is contained in:
Robert Schäfer 2019-06-07 13:48:59 +02:00
parent 7ab6ce4ed2
commit 94ea9c9530

View File

@ -73,7 +73,9 @@
</ds-heading> </ds-heading>
<ds-card style="position: relative; height: auto;"> <ds-card style="position: relative; height: auto;">
<ds-space v-if="user.following && user.following.length" margin="x-small"> <ds-space v-if="user.following && user.following.length" margin="x-small">
<ds-text tag="h5" color="soft"> {{ userName | truncate(15) }} {{ $t('profile.network.following')}} </ds-text> <ds-text tag="h5" color="soft">
{{ userName | truncate(15) }} {{ $t('profile.network.following') }}
</ds-text>
</ds-space> </ds-space>
<template v-if="user.following && user.following.length"> <template v-if="user.following && user.following.length">
<ds-space v-for="follow in uniq(user.following)" :key="follow.id" margin="x-small"> <ds-space v-for="follow in uniq(user.following)" :key="follow.id" margin="x-small">
@ -84,18 +86,23 @@
</ds-space> </ds-space>
<ds-space v-if="user.followingCount - user.following.length" margin="small"> <ds-space v-if="user.followingCount - user.following.length" margin="small">
<ds-text size="small" color="softer"> <ds-text size="small" color="softer">
{{ $t('profile.network.and') }} {{ user.followingCount - user.following.length }} {{ $t('profile.network.more') }} {{ $t('profile.network.and') }} {{ user.followingCount - user.following.length }}
{{ $t('profile.network.more') }}
</ds-text> </ds-text>
</ds-space> </ds-space>
</template> </template>
<template v-else> <template v-else>
<p style="text-align: center; opacity: .5;">{{ userName }} {{$t('profile.network.followingNobody')}}</p> <p style="text-align: center; opacity: .5;">
{{ userName }} {{ $t('profile.network.followingNobody') }}
</p>
</template> </template>
</ds-card> </ds-card>
<ds-space /> <ds-space />
<ds-card style="position: relative; height: auto;"> <ds-card style="position: relative; height: auto;">
<ds-space v-if="user.followedBy && user.followedBy.length" margin="x-small"> <ds-space v-if="user.followedBy && user.followedBy.length" margin="x-small">
<ds-text tag="h5" color="soft">{{ userName | truncate(15) }} {{ $t('profile.network.followedBy')}}</ds-text> <ds-text tag="h5" color="soft">
{{ userName | truncate(15) }} {{ $t('profile.network.followedBy') }}
</ds-text>
</ds-space> </ds-space>
<template v-if="user.followedBy && user.followedBy.length"> <template v-if="user.followedBy && user.followedBy.length">
<ds-space v-for="follow in uniq(user.followedBy)" :key="follow.id" margin="x-small"> <ds-space v-for="follow in uniq(user.followedBy)" :key="follow.id" margin="x-small">
@ -106,12 +113,15 @@
</ds-space> </ds-space>
<ds-space v-if="user.followedByCount - user.followedBy.length" margin="small"> <ds-space v-if="user.followedByCount - user.followedBy.length" margin="small">
<ds-text size="small" color="softer"> <ds-text size="small" color="softer">
{{ $t('profile.network.and') }} {{ user.followedByCount - user.followedBy.length }} {{ $t('profile.network.more') }} {{ $t('profile.network.and') }} {{ user.followedByCount - user.followedBy.length }}
{{ $t('profile.network.more') }}
</ds-text> </ds-text>
</ds-space> </ds-space>
</template> </template>
<template v-else> <template v-else>
<p style="text-align: center; opacity: .5;">{{ userName }} {{$t('profile.network.followedByNobody')}}</p> <p style="text-align: center; opacity: .5;">
{{ userName }} {{ $t('profile.network.followedByNobody') }}
</p>
</template> </template>
</ds-card> </ds-card>
<ds-space v-if="user.socialMedia && user.socialMedia.length" margin="large"> <ds-space v-if="user.socialMedia && user.socialMedia.length" margin="large">