Forgejo actions config
Some checks failed
ci / docker (push) Failing after 17s
/ Test (push) Successful in 2s
/ Checkout (push) Successful in 10s
/ Build (push) Failing after 5s

This commit is contained in:
david 2024-07-22 01:29:09 +02:00
parent 6e4f8937eb
commit 80d09eee99
6 changed files with 55 additions and 24 deletions

View file

@ -3,15 +3,22 @@ module PdfDocuments
private
def generate
heading1 @params.report.name
logo
@prawn_document.formatted_text_box [{
text: "Dieses Dokument wurd am #{Time.current.strftime('%d %B %Y')} um #{Time.current.strftime('%H:%M:%S')} erstellt.", size: 8, align: :right
}], align: :right
@params.report.elements.each do |element|
heading2 element.title
text element.path
heading1 params.report.name
rich_text params.report.comment_html
params.report.elements.each.with_index(1) do |element, element_index|
heading2 "#{element_index} #{element.title}"
formatted_text [{ text: element.path, styles: %i[bold italic underline] }]
move_down(5)
rich_text element.description_html
element.success_criteria.each do |success_criterion|
text success_criterion.title
element.success_criteria.each.with_index(1) do |success_criterion, sc_index|
heading3 "#{element_index}.#{sc_index} #{success_criterion.title}"
rich_text success_criterion.description_html
rich_text success_criterion.comment_html
end