mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Add basic version of post show page
This commit is contained in:
12
app/views/posts/show.html.erb
Normal file
12
app/views/posts/show.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<%=
|
||||
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,
|
||||
}
|
||||
)
|
||||
%>
|
||||
Reference in New Issue
Block a user