Sha256: 6c36e03b0306b2d97f821c309814147aa757bdbeaf2a247c5c2b433fdf454d88
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 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 "dorsale/avatar.png", class: "avatar" p.comment-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.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_comment_text? && comment.text.length > 300 p.comment-text-truncated = truncate(comment.text, length: 200) = " " a.comment-show_more href="#" = ta(:show_more) p.comment-text = text2html(comment.text) .clearfix
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dorsale-3.5.1 | app/views/dorsale/comments/_comment.html.slim |