Skip to content

Commit

Permalink
Add indicator if community is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
asimons04 committed Aug 9, 2024
1 parent dee67ad commit 4446918
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/components/lemmy/community/CommunityCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
ShieldCheck,
ShieldExclamation,
Star,
Trash,
UserGroup,
} from 'svelte-hero-icons'
Expand Down Expand Up @@ -170,10 +171,16 @@

<div class="flex flex-col gap-0 w-full">
<div class="flex flex-row">
<h1 class="font-bold text-xl capitalize">
<h1 class="flex flex-row gap-1 items-center font-bold text-xl capitalize">
<a href="/c/{community_view.community.name}@{new URL(community_view.community.actor_id).hostname}" title="{community_view.community.name}">
{community_view.community.title.replace('&amp;', '&')}
</a>

{#if community_view.community.deleted}
<span class="text-red-500">
<Icon src={Trash} width={16} mini />
</span>
{/if}
</h1>

<!---Community Action Menu --->
Expand Down

0 comments on commit 4446918

Please sign in to comment.