From 010ae783cc478c704dca89adf7de038dc79a8c93 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Thu, 12 Oct 2023 15:07:07 -0700 Subject: [PATCH] feat: put community card actions on the bottom --- .../lemmy/community/CommunityCard.svelte | 84 +++++++++---------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/src/lib/components/lemmy/community/CommunityCard.svelte b/src/lib/components/lemmy/community/CommunityCard.svelte index 90fef8f6..cc4e2e03 100644 --- a/src/lib/components/lemmy/community/CommunityCard.svelte +++ b/src/lib/components/lemmy/community/CommunityCard.svelte @@ -25,6 +25,7 @@ import { Calendar, ChatBubbleOvalLeftEllipsis, + Check, Cog6Tooth, EllipsisHorizontal, Fire, @@ -208,65 +209,64 @@ {/if} + {#if $profile?.jwt} -
- +
-
- {#if $profile.user && amMod($profile.user, community_view.community)} - + {/if} + + + + + {community_view.blocked ? 'Unblock' : 'Block'} + + {#if $profile?.user && isAdmin($profile.user)} + (purgingCommunity = !purgingCommunity)} > - - - {/if} - - - - - {community_view.blocked ? 'Unblock' : 'Block'} + + Purge - {#if $profile.user && isAdmin($profile.user)} - (purgingCommunity = !purgingCommunity)} - > - - Purge - - {/if} - -
+ {/if} +
{/if} -