Added the new, shiny badges to donor overview

ref #79
This commit is contained in:
Nicolai Ort 2021-02-25 17:34:11 +01:00
parent 019a0297a9
commit b0aca9de13

View File

@ -130,15 +130,19 @@
{#if d.responseType === 'DISTANCEDONATION'} {#if d.responseType === 'DISTANCEDONATION'}
<a <a
href="../donations/{d.id}" href="../donations/{d.id}"
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">{d.runner.firstname} {d.runner.middlename} {d.runner.lastname}</a> class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-600 text-white mr-1">{d.runner.firstname}
{d.runner.middlename}
{d.runner.lastname}</a>
{:else} {:else}
<a <a
href="../donations/{d.id}" href="../donations/{d.id}"
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">Fixed: class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-700 text-white mr-1">{$_('fixed-donation')}:
{d.id}</a> {(d.amount / 100)
.toFixed(2)
.toLocaleString('de-DE', { valute: 'EUR' })}€</a>
{/if} {/if}
{/each} {/each}
{:else}Donor has no associated donations.{/if} {:else}{$_('donor-has-no-associated-donations')}{/if}
</td> </td>
<td class="px-6 py-4 whitespace-nowrap"> <td class="px-6 py-4 whitespace-nowrap">
{(donor.donationAmount / 100) {(donor.donationAmount / 100)