* tooltips 1.0.1 * tooltips 1.0.1 * init * . * drop not needed files * . * init * init * . * comments * border * missing bits * build comment JS * . * . * specs * sloan avatar fix * bunch of fixes * specs and fixes * specs * . * swap order of links * contrast * js for dropdown * icons * op-author * three dots icon * reverts * test: capybara- make sure that we click the dropdown before clicking on edit * permalink --> link * tiny fixes * aria-label on form * proper alt on user's avatar * aria has popup * use UL > LI instead of DIV * add aria-labels to dropdown items * another aria-label * better links: nav * contrast Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
<% decorated_comment = comment.decorate %>
|
|
|
|
<div class="comment__inner">
|
|
<%= render partial: "comments/comment_avatar", locals: { comment: comment } %>
|
|
|
|
<div class="inner-comment comment__details">
|
|
<div class="comment__content crayons-card">
|
|
<% if comment.deleted %>
|
|
<div class="p-6 align-center opacity-50 fs-s">
|
|
<span class="js-comment-username">Comment deleted</span>
|
|
</div>
|
|
<% else %>
|
|
<%= render partial: "comments/comment_quality_marker", locals: {
|
|
comment: comment,
|
|
decorated_comment: decorated_comment
|
|
} %>
|
|
|
|
<%= render partial: "comments/comment_header", locals: {
|
|
comment: comment,
|
|
commentable: commentable,
|
|
decorated_comment: decorated_comment
|
|
} %>
|
|
|
|
<div class="comment__body text-styles text-styles--secondary body">
|
|
<%= comment.safe_processed_html %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<%= unless comment.deleted
|
|
(render partial: "comments/comment_footer", locals: {
|
|
comment: comment,
|
|
commentable: commentable,
|
|
is_childless: is_childless
|
|
})
|
|
end %>
|
|
</div>
|
|
</div>
|
|
<%= subtree_html %>
|