First step of online html export
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

This commit is contained in:
david 2024-11-11 20:19:52 +01:00
parent d2165a484c
commit 5e0539d7c6
7 changed files with 264 additions and 16 deletions

View file

@ -0,0 +1,26 @@
# 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