Compare commits
2 Commits
e0890f1181
...
fae4e43682
| Author | SHA1 | Date | |
|---|---|---|---|
| fae4e43682 | |||
| 37eb3d1dfd |
@ -9,6 +9,7 @@ query FrontPageQuery($query: String!, $after: String $before: String, $first: In
|
||||
}
|
||||
nodes {
|
||||
thread
|
||||
total
|
||||
timestamp
|
||||
subject
|
||||
authors
|
||||
|
||||
@ -158,6 +158,9 @@ blockquote[type="cite"],
|
||||
margin-left: .5em;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
.content-tree {
|
||||
white-space: pre-line;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
||||
@ -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"],
|
||||
@ -292,7 +290,10 @@ fn thread(thread: &ShowThreadQueryThread) -> Node<Msg> {
|
||||
contents,
|
||||
content_tree,
|
||||
},
|
||||
) => div![raw_text_message(&contents), pre![content_tree]],
|
||||
) => div![
|
||||
raw_text_message(&contents),
|
||||
pre![C!["content-tree"], content_tree]
|
||||
],
|
||||
ShowThreadQueryThreadMessagesBody::Html(
|
||||
ShowThreadQueryThreadMessagesBodyOnHtml {
|
||||
contents,
|
||||
@ -310,7 +311,7 @@ fn thread(thread: &ShowThreadQueryThread) -> Node<Msg> {
|
||||
.iter()
|
||||
.map(|a| div!["Filename: ", &a.filename, " ", &a.content_type])
|
||||
]),
|
||||
pre![content_tree]
|
||||
pre![C!["content-tree"], content_tree]
|
||||
],
|
||||
}
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user