* Handling hiding/collapsing hidden comments client side * Updated comment quality text * Added placeholder for comments against podcast episodes * Added logic for encompassing co-author-ids in articles * Removed rspecs validating non-presence of hidden comments in dom * Fixed hiding flow on comments page for a commentable * Fixed e2e specs * Addressed feedback on e2e tests
16 lines
739 B
Text
16 lines
739 B
Text
<% if decorated_comment.low_quality %>
|
|
<div class="crayons-notice crayons-notice--warning low-quality-comment-marker">
|
|
<%= t("views.comments.quality.low") %> <a href="/code-of-conduct"><strong><%= t("views.comments.quality.conduct") %></strong></a>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if comment.hidden_by_commentable_user %>
|
|
<div class="low-quality-comment-marker comment__quality-marker">
|
|
<%= inline_svg_tag("info.svg", aria: true, class: "crayons-icon mr-2", title: t("views.comments.quality.hidden.icon")) %>
|
|
<% if @root_comment %>
|
|
<%= t("views.comments.quality.hidden.text.visible_in_permalink") %>
|
|
<% else %>
|
|
<%= t("views.comments.quality.hidden.text.accessible_via_permalink") %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|