mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
showing who is following
This commit is contained in:
parent
9c87c06fed
commit
efafc0045a
@ -27,6 +27,15 @@ export default gql(`
|
||||
commentsCount
|
||||
}
|
||||
followedByCount
|
||||
followedBy {
|
||||
id
|
||||
name
|
||||
slug
|
||||
avatar
|
||||
followedByCount
|
||||
contributionsCount
|
||||
commentsCount
|
||||
}
|
||||
contributionsCount
|
||||
contributions {
|
||||
Post {
|
||||
|
||||
@ -42,7 +42,13 @@
|
||||
<ds-space/>
|
||||
<h2 style="text-align: center; margin-bottom: 10px;">Netzwerk</h2>
|
||||
<ds-card style="position: relative; height: auto;">
|
||||
<p>Folgt:</p>
|
||||
<ds-space margin="x-small">
|
||||
<ds-text
|
||||
tag="h5"
|
||||
color="soft">
|
||||
Wem folgt {{ user.name | truncate(15) }}?
|
||||
</ds-text>
|
||||
</ds-space>
|
||||
<template v-if="user.following.length">
|
||||
<ds-space
|
||||
v-for="follow in user.following"
|
||||
@ -54,7 +60,30 @@
|
||||
</ds-space>
|
||||
</template>
|
||||
<template v-else>
|
||||
<p style="text-align: center; opacity: .5;">folgt niemandem</p>
|
||||
<p style="text-align: center; opacity: .5;">{{ user.name }} folgt niemandem</p>
|
||||
</template>
|
||||
</ds-card>
|
||||
<ds-space/>
|
||||
<ds-card style="position: relative; height: auto;">
|
||||
<ds-space margin="x-small">
|
||||
<ds-text
|
||||
tag="h5"
|
||||
color="soft">
|
||||
Wer folgt {{ user.name | truncate(15) }}?
|
||||
</ds-text>
|
||||
</ds-space>
|
||||
<template v-if="user.followedBy.length">
|
||||
<ds-space
|
||||
v-for="follow in user.followedBy"
|
||||
:key="follow.id"
|
||||
margin="x-small">
|
||||
<hc-related-user
|
||||
:post="follow"
|
||||
:trunc="15" />
|
||||
</ds-space>
|
||||
</template>
|
||||
<template v-else>
|
||||
<p style="text-align: center; opacity: .5;">niemandem folgt {{ user.name }}</p>
|
||||
</template>
|
||||
</ds-card>
|
||||
</ds-flex-item>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user