2023-09-17 13:59:06 +00:00
|
|
|
<div class="micropost">
|
|
|
|
<%= micropost.content %>
|
2023-10-19 18:10:20 +00:00
|
|
|
<% unless micropost.tags.empty? %>
|
|
|
|
<h5>Tags:</h5>
|
|
|
|
<ul id="micropost-<%= micropost.id %>-tags" class="micropost-tags">
|
|
|
|
<% micropost.tags.each do |tag| %>
|
|
|
|
<li><%= tag.name %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
2023-09-17 13:59:06 +00:00
|
|
|
<div class="created_at">
|
2023-10-05 18:05:53 +00:00
|
|
|
<%= link_to "Edit", edit_micropost_path(micropost) if micropost.user == current_user %>
|
2023-09-17 13:59:06 +00:00
|
|
|
<%= link_to micropost.created_at.strftime("%Y-%m-%d %H:%M"), micropost %>
|
|
|
|
</div>
|
|
|
|
</div>
|