+
@@ -27,14 +27,20 @@
{threads.length === 1 ? "topic" : "topics"}
-
- Topic
- Author
- Replies
- Last post
-
- {#each threads as event (event.id)}
-
- {/each}
+
+
+
+ {#each threads as event (event.id)}
+
+ {/each}
+
+
diff --git a/src/app/components/ThreadBoardItem.svelte b/src/app/components/ThreadBoardItem.svelte
index 9b991f4e..c0e6225b 100644
--- a/src/app/components/ThreadBoardItem.svelte
+++ b/src/app/components/ThreadBoardItem.svelte
@@ -2,6 +2,7 @@
import {formatTimestamp, max} from "@welshman/lib"
import type {TrustedEvent} from "@welshman/util"
import {COMMENT, getTagValue} from "@welshman/util"
+ import {goto} from "$app/navigation"
import Link from "@lib/components/Link.svelte"
import ProfileCircle from "@app/components/ProfileCircle.svelte"
import ProfileName from "@app/components/ProfileName.svelte"
@@ -20,29 +21,28 @@
const replyCount = $derived($replies.length)
const lastActive = $derived(max([...$replies, event].map(e => e.created_at)))
const title = getTagValue("title", event.tags)
+ const path = makeThreadPath(url, event.id)
+ const goToThread = () => goto(path)
-
- |
-
- {title || "Untitled thread"}
-
- by
-
+ |
+ |
+
+ {title || "Untitled thread"}
|
-
-
-
-
-
+ |
+
|
-
- Replies ·
+ |
{replyCount}
|
-
- Last ·
+ |
{formatTimestamp(lastActive)}
|
diff --git a/src/routes/spaces/[relay]/threads/+page.svelte b/src/routes/spaces/[relay]/threads/+page.svelte
index fff11319..b405f361 100644
--- a/src/routes/spaces/[relay]/threads/+page.svelte
+++ b/src/routes/spaces/[relay]/threads/+page.svelte
@@ -93,8 +93,6 @@
Looking for threads...
{:else if threadFeed.items.length === 0}
No threads found.
- {:else}
- That's all!
{/if}