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 { nodes {
thread thread
total
timestamp timestamp
subject subject
authors authors

View File

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

View File

@ -121,9 +121,7 @@ fn view_search_results(
td![ td![
C!["from"], C!["from"],
pretty_authors(&r.authors), pretty_authors(&r.authors),
// TODO(wathiede): visualize message count if more than one message is in the IF!(r.total>1 => small![" ", r.total.to_string()]),
// thread
//IF!(r.total>1 => small![" ", r.total.to_string()]),
], ],
td![ td![
C!["subject"], C!["subject"],
@ -292,7 +290,10 @@ fn thread(thread: &ShowThreadQueryThread) -> Node<Msg> {
contents, contents,
content_tree, content_tree,
}, },
) => div![raw_text_message(&contents), pre![content_tree]], ) => div![
raw_text_message(&contents),
pre![C!["content-tree"], content_tree]
],
ShowThreadQueryThreadMessagesBody::Html( ShowThreadQueryThreadMessagesBody::Html(
ShowThreadQueryThreadMessagesBodyOnHtml { ShowThreadQueryThreadMessagesBodyOnHtml {
contents, contents,
@ -310,7 +311,7 @@ fn thread(thread: &ShowThreadQueryThread) -> Node<Msg> {
.iter() .iter()
.map(|a| div!["Filename: ", &a.filename, " ", &a.content_type]) .map(|a| div!["Filename: ", &a.filename, " ", &a.content_type])
]), ]),
pre![content_tree] pre![C!["content-tree"], content_tree]
], ],
} }
], ],