web: make from and date area clickable on search results page

This commit is contained in:
2024-02-27 09:46:23 -08:00
parent 56311bbe05
commit facea2326e
2 changed files with 28 additions and 3 deletions

View File

@@ -163,8 +163,14 @@ fn view_search_results(
]],
td![
C!["from"],
pretty_authors(&r.authors),
IF!(r.total>1 => small![" ", r.total.to_string()]),
a![
C!["has-text-light", "text"],
attrs! {
At::Href => urls::thread(&tid)
},
pretty_authors(&r.authors),
IF!(r.total>1 => small![" ", r.total.to_string()]),
]
],
td![
C!["subject"],
@@ -178,7 +184,16 @@ fn view_search_results(
&r.subject,
]
],
td![C!["date"], datetime]
td![
C!["date"],
a![
C!["has-text-light", "text"],
attrs! {
At::Href => urls::thread(&tid)
},
datetime
]
]
]
});