web: add class for mail vs news-post bodies
This commit is contained in:
parent
a8d5617cf2
commit
85c762a297
@ -705,7 +705,7 @@ fn message_render(msg: &ShowThreadQueryThreadOnEmailThreadMessages, open: bool)
|
|||||||
],
|
],
|
||||||
IF!(open =>
|
IF!(open =>
|
||||||
div![
|
div![
|
||||||
C!["body"],
|
C!["body", "mail"],
|
||||||
match &msg.body {
|
match &msg.body {
|
||||||
ShowThreadQueryThreadOnEmailThreadMessagesBody::UnhandledContentType(
|
ShowThreadQueryThreadOnEmailThreadMessagesBody::UnhandledContentType(
|
||||||
ShowThreadQueryThreadOnEmailThreadMessagesBodyOnUnhandledContentType { contents ,content_tree},
|
ShowThreadQueryThreadOnEmailThreadMessagesBodyOnUnhandledContentType { contents ,content_tree},
|
||||||
@ -1106,13 +1106,17 @@ fn news_post(post: &ShowThreadQueryThreadOnNewsPost, show_icon_text: bool) -> No
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
// This would be the holder for spam buttons on emails
|
// This would be the holder for spam buttons on emails, needed to keep layout
|
||||||
|
// consistent
|
||||||
div![C!["level-item"], div![]]
|
div![C!["level-item"], div![]]
|
||||||
],
|
],
|
||||||
div![
|
div![
|
||||||
C!["message"],
|
C!["message"],
|
||||||
div![C!["header"], render_news_post_header(&post)],
|
div![C!["header"], render_news_post_header(&post)],
|
||||||
div![C!["body", format!("site-{}", post.slug)], raw![&post.body]]
|
div![
|
||||||
|
C!["body", "news-post", format!("site-{}", post.slug)],
|
||||||
|
raw![&post.body]
|
||||||
|
]
|
||||||
] /* TODO(wathiede): plumb in orignal id
|
] /* TODO(wathiede): plumb in orignal id
|
||||||
a![
|
a![
|
||||||
attrs! {At::Href=>api::original(&thread_node.0.as_ref().expect("message missing").id)},
|
attrs! {At::Href=>api::original(&thread_node.0.as_ref().expect("message missing").id)},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user