a11yist/app/controllers/exports_controller.rb
david 5e0539d7c6
Some checks failed
/ Run tests (push) Successful in 1m37s
/ Build, push and deploy image (push) Successful in 1m25s
/ Run system tests (push) Has been cancelled
First step of online html export
2024-11-11 20:19:52 +01:00

26 lines
645 B
Ruby

# frozen_string_literals: true
class ExportsController < ApplicationController
layout "exports"
allow_unauthenticated_access only: [ :show ]
before_action :set_report
def show
@failed_success_criteria = @report.pages
.map(&:elements)
.flatten
.map(&:success_criteria)
.flatten
.select(&:failed?)
respond_to do |format|
format.html
end
end
private
def set_report
@report = Report.find(params[:report_id])
end
end