Files
astuto/app/views/posts/show.html.erb
2022-06-22 10:17:42 +02:00

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,
}
)
%>