From fae4e4368268409adbd580bd8b801184bf56a883 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 10 Dec 2023 15:50:28 -0800 Subject: [PATCH] web: show thread count when greater than 1 --- web/graphql/front_page.graphql | 1 + web/src/view/mod.rs | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/graphql/front_page.graphql b/web/graphql/front_page.graphql index 2f0b2b3..5a5fd22 100644 --- a/web/graphql/front_page.graphql +++ b/web/graphql/front_page.graphql @@ -9,6 +9,7 @@ query FrontPageQuery($query: String!, $after: String $before: String, $first: In } nodes { thread + total timestamp subject authors diff --git a/web/src/view/mod.rs b/web/src/view/mod.rs index 18a7ea0..a34a5b0 100644 --- a/web/src/view/mod.rs +++ b/web/src/view/mod.rs @@ -121,9 +121,7 @@ fn view_search_results( td![ C!["from"], pretty_authors(&r.authors), - // TODO(wathiede): visualize message count if more than one message is in the - // thread - //IF!(r.total>1 => small![" ", r.total.to_string()]), + IF!(r.total>1 => small![" ", r.total.to_string()]), ], td![ C!["subject"],