Sha256: 779c32f9eb9c6f0fe4d45580455246443ca605ad78c9b1f3b3e615e3a6588102

Contents?: true

Size: 952 Bytes

Versions: 11

Compression:

Stored size: 952 Bytes

Contents

.comment id="comment#{comment.id}"
  - if comment.author.try(:avatar_url).present?
    = image_tag comment.author.avatar_url, class: "avatar"
  - else
    = image_tag "dorsale/avatar.png", class: "avatar"

  p.actions
    - if can?(:update, comment)
      = icon_link_to :pencil, t("actions.edit"), dorsale.edit_comment_path(comment), class: "edit"

    - if can?(:delete, comment)
      = icon_link_to :trash, t("actions.delete"), dorsale.comment_path(comment), method: :delete, data: {confirm: t("actions.confirm")}

  p.infos
    - if engine_polymorphic_path(comment.commentable) != request.fullpath
      span.commentable
        = link_to comment.commentable.name, engine_polymorphic_path(comment.commentable)

      span.separator
        = " - "

    span.date
      = l(comment.created_at)

    = " "
    = ::Dorsale::Comment.t(:written_by)
    = " "
    span.author
      = comment.author.name

  p.text = text2html(comment.text)

  .clearfix

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dorsale-2.1.10 app/views/dorsale/comments/_comment.html.slim
dorsale-2.1.9 app/views/dorsale/comments/_comment.html.slim
dorsale-2.1.8 app/views/dorsale/comments/_comment.html.slim
dorsale-2.1.7 app/views/dorsale/comments/_comment.html.slim
dorsale-2.1.6 app/views/dorsale/comments/_comment.html.slim
dorsale-2.1.5 app/views/dorsale/comments/_comment.html.slim
dorsale-2.1.4 app/views/dorsale/comments/_comment.html.slim
dorsale-2.1.3 app/views/dorsale/comments/_comment.html.slim
dorsale-2.1.2 app/views/dorsale/comments/_comment.html.slim
dorsale-2.1.1 app/views/dorsale/comments/_comment.html.slim
dorsale-2.1.0 app/views/dorsale/comments/_comment.html.slim