Sha256: 9feef8ba5114c08ab1abb9bcdb6e1b7f654a54bdf85f880c2df753de13c54faf

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

<div id="c_<%= comment.id %>" class="comment">
  <h5>
    <%= t('date.formats.on') %>
    <%= parse_date(comment.created_at, t('date.formats.datetime')) %>
    <% if current_user.present? && current_user == comment.author %>
      <%= t('orders.show.you_wrote').html_safe %>:
      <%= button_to t('buttons.destroy'), [comment.commentable, comment], confirm: t('messages.are_you_sure'), method: :delete, class: 'btn btn-danger' %>
    <% else %>
      <strong><%= comment.author %></strong> <%= t('parrot.wrote') %>:
    <% end %>
  </h5>
  <p><%= comment.body %></p>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
parrot-0.0.5 app/views/parrot/comments/_comment.html.erb
parrot-0.0.4 app/views/parrot/comments/_comment.html.erb
parrot-0.0.3 app/views/parrot/comments/_comment.html.erb
parrot-0.0.2 app/views/parrot/comments/_comment.html.erb