Display create at on event info

This commit is contained in:
Jon Staab
2025-07-22 10:10:20 -07:00
parent 3e832af3e4
commit 69e1f97e72
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -83,7 +83,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row-2 ml-10 mt-1"> <div class="row-2 ml-10 mt-1 pl-1">
<ReactionSummary <ReactionSummary
{url} {url}
{event} {event}
+14
View File
@@ -1,6 +1,7 @@
<script lang="ts"> <script lang="ts">
import * as nip19 from "nostr-tools/nip19" import * as nip19 from "nostr-tools/nip19"
import {Router} from "@welshman/router" import {Router} from "@welshman/router"
import {LOCALE, secondsToDate} from "@welshman/lib"
import type {TrustedEvent} from "@welshman/util" import type {TrustedEvent} from "@welshman/util"
import Icon from "@lib/components/Icon.svelte" import Icon from "@lib/components/Icon.svelte"
import FieldInline from "@lib/components/FieldInline.svelte" import FieldInline from "@lib/components/FieldInline.svelte"
@@ -22,6 +23,11 @@
const copyLink = () => clip(nevent1) const copyLink = () => clip(nevent1)
const copyPubkey = () => clip(npub1) const copyPubkey = () => clip(npub1)
const copyJson = () => clip(json) const copyJson = () => clip(json)
const formatter = new Intl.DateTimeFormat(LOCALE, {
dateStyle: "long",
timeStyle: "long",
})
</script> </script>
<div class="column gap-4"> <div class="column gap-4">
@@ -33,6 +39,14 @@
<div>The full details of this event are shown below.</div> <div>The full details of this event are shown below.</div>
{/snippet} {/snippet}
</ModalHeader> </ModalHeader>
<FieldInline>
{#snippet label()}
<p>Created At</p>
{/snippet}
{#snippet input()}
<p>{formatter.format(secondsToDate(event.created_at))}</p>
{/snippet}
</FieldInline>
<FieldInline> <FieldInline>
{#snippet label()} {#snippet label()}
<p>Event Link</p> <p>Event Link</p>