Sha256: 84f37845341d3578707536dc94c871db7d54af7cef03cc3039ad0fe8360306de

Contents?: true

Size: 789 Bytes

Versions: 10

Compression:

Stored size: 789 Bytes

Contents

.row-fluid.admin_comment-item id=dom_id(comment)
  .span5
    strong
      - if comment.user_id
        => link_to comment.user_name, admin_user_path(id: comment.user_id), target: '_blank'
    div.muted= l(comment.created_at, format: :long)
    div= comment.body

  .span6
    - comment.attachment_files.each do |file|
      .admin_comment-item-attachment
        - if file.image?
          a.thumbnail href=file.url target='_blank'
            img src=file.url
        - else
          a.admin_comment-item-attachment-file href=file.url target='_blank'
            = icon('file')
            = file.human_name

  .span1
    - if can? :destroy, comment
      = link_to t('admin.delete'), admin_admin_comment_path(comment), remote: true, method: :delete, class: 'btn btn-mini btn-danger'
hr

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ab_admin-0.11.0 app/views/admin/admin_comments/_comment.html.slim
ab_admin-0.10.0 app/views/admin/admin_comments/_comment.html.slim
ab_admin-0.9.0 app/views/admin/admin_comments/_comment.html.slim
ab_admin-0.8.3 app/views/admin/admin_comments/_comment.html.slim
ab_admin-0.8.2 app/views/admin/admin_comments/_comment.html.slim
ab_admin-0.8.1 app/views/admin/admin_comments/_comment.html.slim
ab_admin-0.8.0 app/views/admin/admin_comments/_comment.html.slim
ab_admin-0.7.0 app/views/admin/admin_comments/_comment.html.slim
ab_admin-0.6.1 app/views/admin/admin_comments/_comment.html.slim
ab_admin-0.6.0 app/views/admin/admin_comments/_comment.html.slim