implemented /bookmark/<ID>/view
This commit is contained in:
18
frontend/src/routes/bookmark/Template.svelte
Normal file
18
frontend/src/routes/bookmark/Template.svelte
Normal file
@@ -0,0 +1,18 @@
|
||||
<script>
|
||||
import Tags from '../tags/TagList.svelte';
|
||||
|
||||
let { bookmark } = $props();
|
||||
</script>
|
||||
|
||||
{#if bookmark}
|
||||
<fieldset class="bookmark">
|
||||
<legend>
|
||||
<a href={bookmark.url} target="_blank" class="url">{bookmark.url}</a>
|
||||
</legend>
|
||||
<legend class="date">
|
||||
{bookmark.timestamp.replace('T',' ')}
|
||||
</legend>
|
||||
{@html bookmark.comment.rendered}
|
||||
<Tags module="bookmark" id={bookmark.id} />
|
||||
</fieldset>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user