@@ -589,32 +589,36 @@ impl UiState {
589589 let button_bar = html ! {
590590 @if let Some ( ext_event_id) = external_event_id {
591591 div . "m-postOverview__buttonBar" {
592- ( reactions_html)
593- @if let Some ( reply_count) = reply_count {
594- @if reply_count > 0 {
595- button . "m-postOverview__commentsButton u-button"
596- hx-get={ "/ui/comments/" ( ext_event_id. event_id( ) . to_short( ) ) }
597- hx-target="next .m-postOverview__comments"
598- hx-swap="outerHTML"
599- {
600- span . "m-postOverview__commentsButtonIcon u-buttonIcon" width="1rem" height="1rem" { }
601- @if reply_count == 1 {
602- ( "1 Reply" . to_string( ) )
603- } @else {
604- ( format!( "{} Replies" , reply_count) )
592+ div . m-postOverview__reactions {
593+ ( reactions_html)
594+ }
595+ div . "m-postOverview__buttons" {
596+ @if let Some ( reply_count) = reply_count {
597+ @if reply_count > 0 {
598+ button . "m-postOverview__commentsButton u-button"
599+ hx-get={ "/ui/comments/" ( ext_event_id. event_id( ) . to_short( ) ) }
600+ hx-target="next .m-postOverview__comments"
601+ hx-swap="outerHTML"
602+ {
603+ span . "m-postOverview__commentsButtonIcon u-buttonIcon" width="1rem" height="1rem" { }
604+ @if reply_count == 1 {
605+ ( "1 Reply" . to_string( ) )
606+ } @else {
607+ ( format!( "{} Replies" , reply_count) )
608+ }
605609 }
606610 }
607- }
608611
609- }
610- button . "m-postOverview__replyToButton u-button"
611- disabled[ ro. to_disabled( ) ]
612- hx-get={ "/ui/post/reply_to?reply_to=" ( ext_event_id) }
613- hx-target=".m-newPostForm__replyToLine"
614- hx-swap="outerHTML"
615- {
616- span . "m-postOverview__replyToButtonIcon u-buttonIcon" width="1rem" height="1rem" { }
617- "Reply"
612+ }
613+ button . "m-postOverview__replyToButton u-button"
614+ disabled[ ro. to_disabled( ) ]
615+ hx-get={ "/ui/post/reply_to?reply_to=" ( ext_event_id) }
616+ hx-target=".m-newPostForm__replyToLine"
617+ hx-swap="outerHTML"
618+ {
619+ span . "m-postOverview__replyToButtonIcon u-buttonIcon" width="1rem" height="1rem" { }
620+ "Reply"
621+ }
618622 }
619623 }
620624 }
0 commit comments