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