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