mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-28 09:19:37 +02:00
Add activity types to AdventureCard component and update server files
This commit is contained in:
parent
6d4e860e43
commit
6a4771cece
1 changed files with 11 additions and 0 deletions
|
@ -49,6 +49,17 @@
|
|||
<p class="ml-1">{adventure.date}</p>
|
||||
</div>
|
||||
{/if}
|
||||
{#if adventure.activityTypes && adventure.activityTypes.length > 0}
|
||||
<ul class="flex flex-wrap">
|
||||
{#each adventure.activityTypes as activity}
|
||||
<div
|
||||
class="badge badge-primary mr-1 text-md font-semibold pb-2 pt-1 mb-1"
|
||||
>
|
||||
{activity}
|
||||
</div>
|
||||
{/each}
|
||||
</ul>
|
||||
{/if}
|
||||
<div class="card-actions justify-end">
|
||||
{#if type == "mylog"}
|
||||
<button class="btn btn-primary" on:click={moreInfo}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue