web: make from and date area clickable on search results page
This commit is contained in:
parent
56311bbe05
commit
facea2326e
@ -220,11 +220,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.search-results .row .from {
|
.search-results .row .from {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-results .from a {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search-results .from a {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.search-results .row .tag {
|
.search-results .row .tag {
|
||||||
height: 1.5em;
|
height: 1.5em;
|
||||||
padding-left: .5em;
|
padding-left: .5em;
|
||||||
|
|||||||
@ -163,8 +163,14 @@ fn view_search_results(
|
|||||||
]],
|
]],
|
||||||
td![
|
td![
|
||||||
C!["from"],
|
C!["from"],
|
||||||
pretty_authors(&r.authors),
|
a![
|
||||||
IF!(r.total>1 => small![" ", r.total.to_string()]),
|
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![
|
td![
|
||||||
C!["subject"],
|
C!["subject"],
|
||||||
@ -178,7 +184,16 @@ fn view_search_results(
|
|||||||
&r.subject,
|
&r.subject,
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
td![C!["date"], datetime]
|
td![
|
||||||
|
C!["date"],
|
||||||
|
a![
|
||||||
|
C!["has-text-light", "text"],
|
||||||
|
attrs! {
|
||||||
|
At::Href => urls::thread(&tid)
|
||||||
|
},
|
||||||
|
datetime
|
||||||
|
]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user