docbrown/app/views/comments/_comment_quality_marker.html.erb
Anna Buianova 7d5650c3f1
Admin access to spam comments by url (#20775)
* Admin access to spam comments by url

* Fixed spec

* Fixed view spec
2024-03-22 08:40:36 -04:00

19 lines
943 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>
<% if decorated_comment.super_low_quality %>
<p><strong>(<%= t("views.comments.quality.superlow") %>)</strong></p>
<% end %>
</div>
<% end %>
<% if comment.hidden_by_commentable_user %>
<div class="low-quality-comment-marker comment__quality-marker <%= should_be_hidden?(comment, @root_comment) ? "element-hidden-by-commentable-user" : "" %>">
<%= crayons_icon_tag(:info, class: "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 %>