Sha256: ceb9463b8292ffb19beee7bd23144b0eb631bd7efc443a407994b1296cdf72bb

Contents?: true

Size: 998 Bytes

Versions: 1

Compression:

Stored size: 998 Bytes

Contents

<tr>
  <td class='text-center'>
    <% model_name = comment.commentable.class.name.underscore %>
    <% p = model_name.to_s + '_path' %>
    by <%= link_to comment.author.name, detail_path(comment.author) %><br />
    on <%= link_to (comment.commentable.try(:title) || comment.commentable.try(:name)), comment.commentable %> (<%= comment.locale %>).<br />
    <%= link_to l(comment.created_at, format: :tkh_default), p(comment.commentable, anchor: "comment-#{comment.id}") %>
    <br /><br />
    <p class="admin-comment-body"><%= sanitize comment.body.gsub(/\r\n?/, "<br>"), :tags => %w(br), :attributes => %w() %></p>
    <strong><%= t("comments.status.#{comment.status}") %></strong><br />
    <%= render 'comments/status_buttons', comment: comment %>
    <br /><br />
    <%= link_to t('edit'), edit_comment_path(comment), class: 'btn btn-xs btn-default' %><%= link_to t('delete'), comment, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger' %>
  </td>
</tr>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tkh_content-0.9.17 app/views/comments/_admin_individual_comment.html.erb