docbrown/app/views/comments/_comment_quality_marker.html.erb
ludwiczakpawel 70706d0a62
Comments UI update (#11283)
* 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>
2020-11-18 18:21:19 -05:00

14 lines
641 B
Text

<% if decorated_comment.low_quality %>
<div class="low-quality-comment-marker comment__quality-marker">
<%= inline_svg_tag("info.svg", aria: true, class: "crayons-icon mr-2", title: "Info") %>
Comment marked as low quality/non-constructive by the community.
<a href="/code-of-conduct">View code of conduct</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: "Info") %>
Comment hidden by post author - thread only visible in this permalink
</div>
<% end %>