OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
obey rubocop
as-op80149260495c
diff --git a/app/models/work_package/pdf_export/export/cover.rb b/app/models/work_package/pdf_export/export/cover.rbindex 8daf1b1448d..a91eed6ead2 100644--- a/app/models/work_package/pdf_export/export/cover.rb+++ b/app/models/work_package/pdf_export/export/cover.rb@@ -47,12 +47,27 @@ module WorkPackage::PDFExport::Export::Coverenddef available_title_height(current_y)- current_y - [- cover_page_title&.then { styles.cover_hero_title_max_height + styles.cover_hero_title_spacing } || 0,- cover_page_heading&.then { styles.cover_hero_heading_spacing } || 0,- cover_page_dates&.then { styles.cover_hero_dates_max_height } || 0,- cover_page_subheading&.then { styles.cover_hero_subheading_max_height } || 0- ].sum+ current_y -+ cover_hero_title_max_height -+ cover_hero_heading_max_height -+ cover_hero_dates_max_height -+ cover_hero_subheading_max_height+ end++ def cover_hero_title_max_height+ cover_page_title&.then { styles.cover_hero_title_max_height + styles.cover_hero_title_spacing } || 0+ end++ def cover_hero_heading_max_height+ cover_page_heading&.then { styles.cover_hero_heading_spacing } || 0+ end++ def cover_hero_dates_max_height+ cover_page_dates&.then { styles.cover_hero_dates_max_height } || 0+ end++ def cover_hero_subheading_max_height+ cover_page_title&.then { styles.cover_hero_title_max_height + styles.cover_hero_title_spacing } || 0enddef write_cover_hr