Sha256: 9a23284f7d08d611ca5c32e54a6b2985bc8a53b108a8425cad37d72e1409c324
Contents?: true
Size: 925 Bytes
Versions: 8
Compression:
Stored size: 925 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 policy(comment).update? = icon_link_to :pencil, t("actions.edit"), dorsale.edit_comment_path(comment), class: "edit" - if policy(comment).delete? = icon_link_to :trash, t("actions.delete"), dorsale.comment_path(comment), method: :delete, remote: true, data: {confirm: t("actions.confirm")} p.infos span.commentable-container 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.to_s p.text = text2html(comment.text) .clearfix
Version data entries
8 entries across 8 versions & 1 rubygems