Skip to content
Snippets Groups Projects
Commit 4cac793c authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Warnings

parent 7c281fc6
No related branches found
No related tags found
No related merge requests found
<%
$color = about.accessible? ? 'text-success' : 'text-danger'
%>
<span class="small a11y__status">
<i class="a11y__status__icon lead fas fa-universal-access <%= $color %>"></i>
<%= t "accessibility.status.#{about.accessible?}" %>
<% if about.accessibility_errors.any? %>
<i class="fas fa-universal-access text-danger"></i>
<%= t "accessibility.status.false" %>
<% elsif about.accessibility_warnings.any? %>
<i class="fas fa-universal-access text-muted"></i>
<%= t "accessibility.status.warnings" %>
<% end %>
</span>
......@@ -26,7 +26,7 @@
<div class="content-editor__elements__preview">
<%= render "admin/communication/blocks/templates/#{block.template_kind}/snippet", block: block %>
</div>
<%= render 'admin/application/a11y/status', about: block unless block.accessible? %>
<%= render 'admin/application/a11y/status', about: block %>
</article>
</div>
</div>
......
......@@ -8,6 +8,7 @@ en:
status:
true: Accessible
false: Not accessible
warnings: Needs checking
warnings:
one: '1 insight'
other: '%{count} insights'
......
......@@ -8,6 +8,7 @@ fr:
status:
true: Accessible
false: Non accessible
warnings: À vérifier
warnings:
one: '1 information utile'
other: '%{count} informations utiles'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment