mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
15 lines
435 B
Plaintext
15 lines
435 B
Plaintext
<%=
|
|
react_component(
|
|
'Post',
|
|
{
|
|
postId: @post.id,
|
|
boards: @boards,
|
|
postStatuses: @post_statuses,
|
|
isLoggedIn: user_signed_in?,
|
|
isPowerUser: user_signed_in? ? current_user.power_user? : false,
|
|
currentUserFullName: user_signed_in? ? current_user.full_name : nil,
|
|
currentUserEmail: user_signed_in? ? current_user.email : nil,
|
|
authenticityToken: form_authenticity_token,
|
|
}
|
|
)
|
|
%> |