{#await community_view}
{:then community_view}
{#snippet customIcon()} {/snippet}

{#snippet title()} {$t('cards.site.about')} {/snippet}
{#snippet title()} {$t('cards.site.stats')} {/snippet}
{#if moderators && moderators.length > 0}
{#snippet title()} {$t('cards.community.moderators')} {/snippet} {#snippet item(moderator)} {#snippet customIcon()} {/snippet} {#snippet label()}
{moderator.moderator.display_name ?? moderator.moderator.name} {new URL(moderator.moderator.actor_id).hostname}
{/snippet}
{/snippet}
{/if}
{#if profile.current?.jwt} {/if} {#if profile.current?.user && amMod(profile.current.user, community_view.community)} {/if} {#snippet target()} {/snippet} {$t('cards.community.modlog')} {#if profile.current?.jwt} block(community_view.community.id, !community_view.blocked)} > {#snippet prefix()} {/snippet} {community_view.blocked ? $t('cards.community.unblock') : $t('cards.community.block')} {#if profile.current?.user} blockInstance(community_view.community.instance_id)} > {#snippet prefix()} {/snippet} {$t('cards.community.blockInstance')} {/if} {#if profile.current?.user && isAdmin(profile.current.user)} modal({ title: $t('admin.purgeCommunity.title'), body: `${community_view.community.title}: ${$t('admin.purgeCommunity.warning')}`, actions: [ action({ close: true, content: $t('common.cancel'), }), action({ action: () => purgeCommunity(community_view.community.id), close: true, content: $t('admin.purge'), type: 'danger', icon: Fire, }), ], dismissable: true, type: 'error', })} > {#snippet prefix()} {/snippet} {$t('admin.purge')} {/if} {/if}
{/await}