Sha256: 258013b590baa271b7bafd8e1bf53bfd811d99aaaaf099e7e4767a79d3145a04

Contents?: true

Size: 1.26 KB

Versions: 38

Compression:

Stored size: 1.26 KB

Contents

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

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

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

  p.comment-infos
    span.comment-commentable-container
      span.comment-commentable = link_to_object(comment.commentable)
      span.comment-separator   = " - "

    - if comment.title.present?
      span.title-container
        strong.title  = comment.title
        span.separator = " - "

    span.comment-date
      = date(comment.date)

    = " "
    = comment.t(:written_by)
    = " "
    span.comment-author
      = comment.author.to_s

  - if truncate_comments_in_this_page? && text = truncate_comment_text(comment.text)
    p.comment-text-truncated
      = text
      = " "
      a.comment-show_more href="#"
        = ta(:show_more)

  p.comment-text = text2html(comment.text)

  .clearfix

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
dorsale-4.0.0 app/views/dorsale/comments/_comment.html.slim
dorsale-3.20.0 app/views/dorsale/comments/_comment.html.slim
dorsale-3.19.1 app/views/dorsale/comments/_comment.html.slim
dorsale-3.19.0 app/views/dorsale/comments/_comment.html.slim
dorsale-3.18.0 app/views/dorsale/comments/_comment.html.slim
dorsale-3.17.0 app/views/dorsale/comments/_comment.html.slim
dorsale-3.16.0 app/views/dorsale/comments/_comment.html.slim
dorsale-3.15.0 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.11 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.10 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.9 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.8 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.7 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.6 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.5 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.4 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.3 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.2 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.1 app/views/dorsale/comments/_comment.html.slim
dorsale-3.14.0 app/views/dorsale/comments/_comment.html.slim