clean up UserCard template
This commit is contained in:
parent
3b9ab0e343
commit
dbe2decc59
@ -45,11 +45,9 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="isOtherUser" class="user-interactions">
|
<div v-if="loggedIn && isOtherUser" class="user-interactions">
|
||||||
<div class="follow" v-if="loggedIn">
|
<div class="follow">
|
||||||
<span v-if="user.following">
|
<button @click="unfollowUser" class="pressed" :disabled="followRequestInProgress" :title="$t('user_card.follow_unfollow')" v-if="user.following">
|
||||||
<!--Following them!-->
|
|
||||||
<button @click="unfollowUser" class="pressed" :disabled="followRequestInProgress" :title="$t('user_card.follow_unfollow')">
|
|
||||||
<template v-if="followRequestInProgress">
|
<template v-if="followRequestInProgress">
|
||||||
{{ $t('user_card.follow_progress') }}
|
{{ $t('user_card.follow_progress') }}
|
||||||
</template>
|
</template>
|
||||||
@ -57,9 +55,7 @@
|
|||||||
{{ $t('user_card.following') }}
|
{{ $t('user_card.following') }}
|
||||||
</template>
|
</template>
|
||||||
</button>
|
</button>
|
||||||
</span>
|
<button @click="followUser" :disabled="followRequestInProgress" :title="followRequestSent ? $t('user_card.follow_again') : ''" v-else>
|
||||||
<span v-if="!user.following">
|
|
||||||
<button @click="followUser" :disabled="followRequestInProgress" :title="followRequestSent ? $t('user_card.follow_again') : ''">
|
|
||||||
<template v-if="followRequestInProgress">
|
<template v-if="followRequestInProgress">
|
||||||
{{ $t('user_card.follow_progress') }}
|
{{ $t('user_card.follow_progress') }}
|
||||||
</template>
|
</template>
|
||||||
@ -70,9 +66,8 @@
|
|||||||
{{ $t('user_card.follow') }}
|
{{ $t('user_card.follow') }}
|
||||||
</template>
|
</template>
|
||||||
</button>
|
</button>
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="loggedIn">
|
<div>
|
||||||
<ProgressButton :click="subscribeUser" v-if="!user.subscribed">
|
<ProgressButton :click="subscribeUser" v-if="!user.subscribed">
|
||||||
{{ $t('user_card.subscribe') }}
|
{{ $t('user_card.subscribe') }}
|
||||||
</ProgressButton>
|
</ProgressButton>
|
||||||
@ -80,7 +75,7 @@
|
|||||||
{{ $t('user_card.subscribed') }}
|
{{ $t('user_card.subscribed') }}
|
||||||
</ProgressButton>
|
</ProgressButton>
|
||||||
</div>
|
</div>
|
||||||
<div class='mute' v-if='isOtherUser && loggedIn'>
|
<div class='mute'>
|
||||||
<span v-if='user.muted'>
|
<span v-if='user.muted'>
|
||||||
<button @click="unmuteUser" class="pressed">
|
<button @click="unmuteUser" class="pressed">
|
||||||
{{ $t('user_card.muted') }}
|
{{ $t('user_card.muted') }}
|
||||||
@ -92,10 +87,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if='!loggedIn && user.is_local'>
|
<div class='block'>
|
||||||
<RemoteFollow :user="user" />
|
|
||||||
</div>
|
|
||||||
<div class='block' v-if='isOtherUser && loggedIn'>
|
|
||||||
<span v-if='user.statusnet_blocking'>
|
<span v-if='user.statusnet_blocking'>
|
||||||
<button @click="unblockUser" class="pressed">
|
<button @click="unblockUser" class="pressed">
|
||||||
{{ $t('user_card.blocked') }}
|
{{ $t('user_card.blocked') }}
|
||||||
@ -107,7 +99,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='block' v-if='isOtherUser && loggedIn'>
|
<div class='block'>
|
||||||
<span>
|
<span>
|
||||||
<button @click="reportUser">
|
<button @click="reportUser">
|
||||||
{{ $t('user_card.report') }}
|
{{ $t('user_card.report') }}
|
||||||
@ -116,6 +108,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<ModerationTools :user='user' v-if='loggedIn.role === "admin"' />
|
<ModerationTools :user='user' v-if='loggedIn.role === "admin"' />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="user-interactions" v-if="!loggedIn && user.is_local">
|
||||||
|
<RemoteFollow :user="user" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body" v-if="!hideBio">
|
<div class="panel-body" v-if="!hideBio">
|
||||||
|
Loading…
Reference in New Issue
Block a user