Sha256: eb4e04782954b3e11c32f99a9c07a7979ec9e1e5f93f271a6cbe493598987100

Contents?: true

Size: 789 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
ab_admin-0.5.0 app/views/admin/admin_comments/_comment.html.slim
ab_admin-0.4.0 app/views/admin/admin_comments/_comment.html.slim