Compare commits

...

2 Commits

3 changed files with 10 additions and 5 deletions

View File

@ -9,6 +9,7 @@ query FrontPageQuery($query: String!, $after: String $before: String, $first: In
}
nodes {
thread
total
timestamp
subject
authors

View File

@ -158,6 +158,9 @@ blockquote[type="cite"],
margin-left: .5em;
margin-bottom: 0 !important;
}
.content-tree {
white-space: pre-line;
}
</style>
</head>

View File

@ -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]
],
}
],