40 lines
853 B
Text
40 lines
853 B
Text
|
|
<%= link_to 'Back', member_blog_posts_path %><br>
|
||
|
|
<%= image_tag @post.icon_image if @post.icon_image.attached? %>
|
||
|
|
<section class="inner"><p>
|
||
|
|
<strong>Post Title:</strong>
|
||
|
|
<%= @post.post_title %>
|
||
|
|
</p>
|
||
|
|
|
||
|
|
<p>
|
||
|
|
<strong>Content:</strong>
|
||
|
|
<%= @post.text %>
|
||
|
|
</p>
|
||
|
|
<p>
|
||
|
|
<strong>Currently Listening To...:</strong>
|
||
|
|
<%= @post.music %>
|
||
|
|
</p>
|
||
|
|
<p>
|
||
|
|
<strong>Current Mood:</strong>
|
||
|
|
<%= @post.mood %>
|
||
|
|
<hr>
|
||
|
|
<section class="comment">
|
||
|
|
<h2>Comments</h2>
|
||
|
|
<%= render @post.comments %>
|
||
|
|
add a comment...
|
||
|
|
<%= form_with(
|
||
|
|
model: [@post.blog.member, @post.blog, @post, Comment.new],
|
||
|
|
local: true
|
||
|
|
) do |form| %>
|
||
|
|
|
||
|
|
<%= form.label :commenter %><br>
|
||
|
|
<%= form.text_field :commenter %>
|
||
|
|
<br>
|
||
|
|
<%= form.label :body %><br>
|
||
|
|
<%= form.rich_text_area :body %>
|
||
|
|
|
||
|
|
<%= form.submit %>
|
||
|
|
<% end %>
|
||
|
|
</section></section>
|
||
|
|
|
||
|
|
|