Skip to content

Commit

Permalink
chore: add types to entity[id] page
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviareichl committed Sep 12, 2024
1 parent 8bf1243 commit ab9b865
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pages/entity/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ const typesById = computed(() => {
<div class="grid gap-4">
<EntityTimespans :timespans="entity.when?.timespans" />
<EntityDescriptions :descriptions="entity?.descriptions ?? []" />
<!-- Types -->
<div class="flex flex-row flex-wrap gap-1">
<TypesPopover
v-for="type in entity.types"
:key="type.identifier ?? type.label ?? 'missing'"
:type="type"
/>
</div>
</div>
</CardContent>
</Card>
Expand Down Expand Up @@ -159,7 +167,7 @@ const typesById = computed(() => {
</ul>
<details v-if="relations.length > 10">
<summary class="cursor-pointer py-1 text-sm text-muted-foreground">
Show more
{{ t("Global.ShowMore") }}
</summary>
<ul role="list">
<li v-for="(relation, index) of relations.slice(10)" :key="index">
Expand Down

0 comments on commit ab9b865

Please sign in to comment.