From 8e679dfee247d867f6cc677bb9ce63a43edf80d6 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Thu, 12 Oct 2023 15:57:49 -0700 Subject: [PATCH] feat: add modlog to community carddd --- .../lemmy/community/CommunityCard.svelte | 51 +++++++++++-------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/src/lib/components/lemmy/community/CommunityCard.svelte b/src/lib/components/lemmy/community/CommunityCard.svelte index 841a0b59..0c895bef 100644 --- a/src/lib/components/lemmy/community/CommunityCard.svelte +++ b/src/lib/components/lemmy/community/CommunityCard.svelte @@ -31,6 +31,7 @@ Fire, Icon, Minus, + Newspaper, NoSymbol, PencilSquare, Plus, @@ -210,10 +211,10 @@ {/if} - {#if $profile?.jwt} -
+
+ {#if $profile?.jwt} - {/if} - - + {/if} + {#if $profile?.user && amMod($profile.user, community_view.community)} + + {/if} + + + + + Modlog + + {#if $profile?.jwt} {community_view.blocked ? 'Unblock' : 'Block'} @@ -266,7 +273,7 @@ Purge {/if} - -
- {/if} + {/if} + +