Sha256: 54bad7368eb42de0cc29bfd0f36630c6c093b3849dbc77306639af8a5911cfb9

Contents?: true

Size: 988 Bytes

Versions: 15

Compression:

Stored size: 988 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> <%= 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

15 entries across 15 versions & 1 rubygems

Version Path
tkh_content-0.10.10 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.10.9 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.10.8 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.10.7 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.10.6 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.10.5.1 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.10.5 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.10.4 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.10.3 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.10.2 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.10.1 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.10 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.9.20 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.9.19 app/views/comments/_admin_individual_comment.html.erb
tkh_content-0.9.18 app/views/comments/_admin_individual_comment.html.erb