<% model_name = comment.commentable.class.name.underscore %> <% p = model_name.to_s + '_path' %> by <%= link_to comment.author.name, detail_path(comment.author) %>
on <%= link_to (comment.commentable.try(:title) || comment.commentable.try(:name)), comment.commentable %> (<%= comment.locale %>).
<%= link_to l(comment.created_at, format: :tkh_default), p(comment.commentable, anchor: "comment-#{comment.id}") %>

<%= sanitize comment.body.gsub(/\r\n?/, "
"), :tags => %w(br), :attributes => %w() %>

<%= t("comments.status.#{comment.status}") %> <%= render 'comments/status_buttons', comment: comment %>

<%= 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' %>