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
Add margin conditionally
Mir Bhatiacd98c1905deb
diff --git a/modules/meeting/app/components/meeting_agenda_items/outcomes/base_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/outcomes/base_component.html.erbindex 0aa1e14ae08..42c4dec8119 100644--- a/modules/meeting/app/components/meeting_agenda_items/outcomes/base_component.html.erb+++ b/modules/meeting/app/components/meeting_agenda_items/outcomes/base_component.html.erb@@ -1,6 +1,6 @@<%=component_wrapper do- grid_layout("op-meeting-outcome", tag: :div, id: "outcome-#{@meeting_agenda_item.id}", mt: 2) do |grid|+ grid_layout("op-meeting-outcome", tag: :div, id: "outcome-#{@meeting_agenda_item.id}", mt: conditional_margin_top) do |grid|if @editgrid.with_area(:notes) dorender(MeetingAgendaItems::Outcomes::InputComponent.new(meeting: @meeting, meeting_agenda_item: @meeting_agenda_item, meeting_outcome: @meeting_outcome))diff --git a/modules/meeting/app/components/meeting_agenda_items/outcomes/base_component.rb b/modules/meeting/app/components/meeting_agenda_items/outcomes/base_component.rbindex 089acade6e5..15084a7093d 100644--- a/modules/meeting/app/components/meeting_agenda_items/outcomes/base_component.rb+++ b/modules/meeting/app/components/meeting_agenda_items/outcomes/base_component.rb@@ -53,5 +53,13 @@ module MeetingAgendaItems@meeting_outcome = @meeting_agenda_item.outcomes.information_kind.lastendend++ def conditional_margin_top+ if @meeting.in_progress? || @meeting_outcome.present?+ 2+ else+ 0+ end+ endendenddiff --git a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_move_to_next_spec.rb b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_move_to_next_spec.rbindex 3a3d1763b68..860a5808317 100644--- a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_move_to_next_spec.rb+++ b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_move_to_next_spec.rb@@ -121,7 +121,7 @@ RSpec.describe "Recurring meetings move to next meeting", :js domeeting_page.select_action(series_agenda_item, "Move to next meeting")end- expect(page).to have_text "The next meeting in this series has been cancelled."+ expect(page).to have_text "Unable to move to the next meeting since it has been cancelled."meeting_page.expect_agenda_item(title: "Test notes")endend