Files
astuto/app/views/posts/show.html.erb
2019-09-12 15:51:45 +02:00

12 lines
311 B
Plaintext

<%=
react_component(
'Post',
{
postId: @post.id,
postStatuses: @post_statuses,
isLoggedIn: user_signed_in?,
isPowerUser: user_signed_in? ? (current_user.role == 'admin' || current_user.role == 'moderator') : false,
authenticityToken: form_authenticity_token,
}
)
%>