a11yist/app/views/checks/_check.html.slim

80 lines
2.7 KiB
Text
Raw Normal View History

2024-09-05 22:54:38 +02:00
div id=dom_id(check)
table.table
tbody
tr
th = Check.human_attribute_name(:id)
td = check.id
tr
th = Check.human_attribute_name(:name)
td = check.t_name
2024-09-11 22:04:55 +02:00
tr
th = Check.human_attribute_name(:number)
td = check.number
tr
th = Principle.model_name.human
td = check.principle&.t_name
2024-09-05 22:54:38 +02:00
tr
th = Standard.model_name.human(count: check.standard_ids.size)
td = check.standards.map(&:t_name).join(", ")
tr
th = Check.human_attribute_name(:target_disabilities)
td = check.display_target_disabilities
tr
th = Check.human_attribute_name(:applicabilities)
td = check.display_applicabilities
tr
th = Check.human_attribute_name(:external_number)
td = check.external_number
2024-09-11 22:04:55 +02:00
tr
th = Check.human_attribute_name(:external_url)
td = check.external_url
2024-09-05 22:54:38 +02:00
tr
th = Check.human_attribute_name(:conformity_level)
td = check.conformity_level
tr
th = Check.human_attribute_name(:conformity_notice_de)
td = check.conformity_notice_de
tr
th = Check.human_attribute_name(:priority)
2024-09-11 22:04:55 +02:00
td = safe_display(check.priority) { I18n.t("priority.#{_1}") }
2024-09-05 22:54:38 +02:00
tr
th = Check.human_attribute_name(:quick_criterion_de)
td = check.quick_criterion_de
tr
th = Check.human_attribute_name(:quick_fail_de)
td = check.quick_fail_de
tr
th = Check.human_attribute_name(:quick_fix_de)
td = check.quick_fix_de
tr
2024-09-11 22:04:55 +02:00
th = Check.human_attribute_name(:criterion_de)
td = check.criterion_de
tr
th = Check.human_attribute_name(:criterion_details_de)
td = check.criterion_details_de
tr
th = Check.human_attribute_name(:example_de)
td = check.example_de
tr
th = Check.human_attribute_name(:exemption_details_de)
td = check.exemption_details_de
tr
th = Check.human_attribute_name(:test_instructions)
td = check.test_instructions
tr
th = Check.human_attribute_name(:powerpoint_text_de)
td = check.powerpoint_text_de
tr
th = Check.human_attribute_name(:comment)
td = check.comment
2024-09-05 22:54:38 +02:00
tr
th = Link.model_name.human(count: check.links.size)
td
.row
.col
- check.links.map(&:link_category).uniq.each do |category|
span = category.name
ul
- check.links.select{ _1.link_category == category }.map { |link| link_to link.text, link.url, target: :_blank }.each do |link|
li = link