mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-31 02:39:38 +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>
|
<p class="ml-1">{adventure.date}</p>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/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">
|
<div class="card-actions justify-end">
|
||||||
{#if type == "mylog"}
|
{#if type == "mylog"}
|
||||||
<button class="btn btn-primary" on:click={moreInfo}
|
<button class="btn btn-primary" on:click={moreInfo}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue