web: shorten outbound link on news post
This commit is contained in:
parent
3c8d7d4f81
commit
d962d515f5
@ -1143,17 +1143,14 @@ fn render_news_post_header(post: &ShowThreadQueryThreadOnNewsPost) -> Node<Msg>
|
|||||||
p![
|
p![
|
||||||
strong![from],
|
strong![from],
|
||||||
br![],
|
br![],
|
||||||
small![
|
small![a![
|
||||||
&from_detail,
|
attrs! {
|
||||||
" ",
|
At::Href => post.url,
|
||||||
span![
|
At::Target => "_blank",
|
||||||
i![C!["far", "fa-clone"]],
|
},
|
||||||
ev(Ev::Click, move |e| {
|
"Source ",
|
||||||
e.stop_propagation();
|
i![C!["fas", "fa-up-right-from-square"]],
|
||||||
Msg::CopyToClipboard(from_detail.to_string())
|
]],
|
||||||
})
|
|
||||||
]
|
|
||||||
],
|
|
||||||
table![tr![td![
|
table![tr![td![
|
||||||
attrs! {At::ColSpan=>2},
|
attrs! {At::ColSpan=>2},
|
||||||
span![C!["header"], human_age(post.timestamp)]
|
span![C!["header"], human_age(post.timestamp)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user