feat: anonymous donations
commit8c56aa3c46Merge:f642849d1505080aAuthor: Philipp Dormann <philipp@philippdormann.de> Date: Mon Apr 28 10:57:14 2025 +0200 Merge branch 'dev' into feature/anonyme-spende commitf642849dbbAuthor: Philipp Dormann <philipp@philippdormann.de> Date: Mon Apr 28 10:56:45 2025 +0200 wip commit7ac92ae6caAuthor: Philipp Dormann <philipp@philippdormann.de> Date: Mon Apr 28 10:45:47 2025 +0200 wip commit95af9f9914Author: Philipp Dormann <philipp@philippdormann.de> Date: Mon Apr 28 10:44:02 2025 +0200 i18n commit1004aee16cAuthor: Philipp Dormann <philipp@philippdormann.de> Date: Mon Apr 28 10:40:23 2025 +0200 implement DonationDonor commit0baf2fc460Author: Philipp Dormann <philipp@philippdormann.de> Date: Mon Apr 28 10:38:27 2025 +0200 wip commit09b59175eeAuthor: Philipp Dormann <philipp@philippdormann.de> Date: Mon Apr 28 10:35:45 2025 +0200 wip commita21f61f3f3Author: Philipp Dormann <philipp@philippdormann.de> Date: Mon Apr 28 10:24:07 2025 +0200 wip
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
<script>
|
||||
import { _ } from "svelte-i18n";
|
||||
export let donor;
|
||||
import { _ } from "svelte-i18n";
|
||||
export let donor;
|
||||
</script>
|
||||
|
||||
{#if !donor || donor.firstname == 0}
|
||||
{$_("donor-has-no-associated-donations")}
|
||||
<span
|
||||
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800 border border-current"
|
||||
>{$_('anonymer_sponsor')}</span
|
||||
>
|
||||
{:else}
|
||||
<div class="flex items-center">
|
||||
<a
|
||||
href="../donors/{donor.id}"
|
||||
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800 border border-current"
|
||||
>{donor.firstname}
|
||||
{#if donor.middlename}{donor.middlename}{/if}
|
||||
{donor.lastname}</a
|
||||
>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<a
|
||||
href="../donors/{donor.id}"
|
||||
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800 border border-current"
|
||||
>{donor.firstname}
|
||||
{#if donor.middlename}{donor.middlename}{/if}
|
||||
{donor.lastname}</a
|
||||
>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user