Skip to content

Commit

Permalink
feat(frontend): display object type
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiguelv committed Jul 19, 2024
1 parent 245caa0 commit b80f7aa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
6 changes: 6 additions & 0 deletions frontend/src/lib/components/InscriptionCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
{:else}
<dd>{inscription.type?._ || 'N/A'}</dd>
{/if}
<dt>Object type</dt>
{#if inscription.objectType.ref}
<dd><a href={inscription.objectType.ref}>{inscription.objectType?._}</a></dd>
{:else}
<dd>{inscription.objectType?._ || 'N/A'}</dd>
{/if}
<dt>Language</dt>
<dd>{inscription.textLang?._ || 'N/A'}</dd>
</dl>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lib/components/InscriptionTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<th>Place</th>
<th>Status</th>
<th>Type</th>
<th>Object type</th>
<th>Language</th>
</tr>
</thead>
Expand Down
19 changes: 14 additions & 5 deletions frontend/src/lib/components/InscriptionTableRow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,19 @@
<td><InscriptionDate {inscription} /></td>
<td><InscriptionPlace {inscription} /></td>
<td>{inscription.status}</td>
{#if inscription.type.ref}
<td><a href={inscription.type.ref}>{inscription.type?._}</a></td>
{:else}
<td>{inscription.type?._ || 'N/A'}</td>
{/if}
<td>
{#if inscription.type.ref}
<a href={inscription.type.ref}>{inscription.type?._}</a>
{:else}
{inscription.type?._ || 'N/A'}
{/if}
</td>
<td>
{#if inscription.objectType.ref}
<a href={inscription.objectType.ref}>{inscription.objectType?._}</a>
{:else}
{inscription.objectType?._ || 'N/A'}
{/if}
</td>
<td>{inscription.textLang?._ || 'N/A'}</td>
</tr>

0 comments on commit b80f7aa

Please sign in to comment.