Files
astuto/app/views/posts/show.html.erb

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