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
Hide create buttons and additional hints for empty rows when printing
Henriette Darge437189c50c75
diff --git a/modules/meeting/app/components/meeting_agenda_items/new_button_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/new_button_component.html.erbindex 9fbe7916d53..15aad999b5d 100644--- a/modules/meeting/app/components/meeting_agenda_items/new_button_component.html.erb+++ b/modules/meeting/app/components/meeting_agenda_items/new_button_component.html.erb@@ -1,6 +1,6 @@<%=component_wrapper(style: "position: relative") do- render(Primer::Alpha::ActionMenu.new) do |component|+ render(Primer::Alpha::ActionMenu.new(classes: "hide-when-print")) do |component|component.with_show_button(scheme: button_scheme, disabled: @disabled) do |button|button.with_leading_visual_icon(icon: :plus)t("button_add")diff --git a/modules/meeting/app/components/meeting_sections/show_component.html.erb b/modules/meeting/app/components/meeting_sections/show_component.html.erbindex 58300dcc887..e616d9f6062 100644--- a/modules/meeting/app/components/meeting_sections/show_component.html.erb+++ b/modules/meeting/app/components/meeting_sections/show_component.html.erb@@ -8,7 +8,7 @@endif render_new_button_in_section?component.with_row(data: { 'empty-list-item': true }) do- flex_layout(align_items: :center, justify_content: :space_between) do |empty_list_container|+ flex_layout(align_items: :center, justify_content: :space_between, classes: "hide-when-print") do |empty_list_container|empty_list_container.with_column(mr: 2) dorender(Primer::Beta::Text.new(color: :subtle)) { t("meeting_section.empty_text") }end