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
Fix blankslate duplicate info and being too verbose
Oliver Günthera6f596c9151c
diff --git a/modules/meeting/app/components/meeting_agenda_items/blank_slate_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/blank_slate_component.html.erbindex 3380f57b562..44f1977e133 100644--- a/modules/meeting/app/components/meeting_agenda_items/blank_slate_component.html.erb+++ b/modules/meeting/app/components/meeting_agenda_items/blank_slate_component.html.erb@@ -8,14 +8,15 @@flex.with_row(mb: 2) dorender(Primer::Beta::Text.new(color: :subtle)) { t(:"recurring_meeting.template.description") }end+ else+ flex.with_row(mb: 2) do+ render(Primer::Beta::Text.new(color: :subtle)) { t(:text_meeting_empty_description_1) }+ end+ flex.with_row do+ render(Primer::Beta::Text.new(color: :subtle)) { t(:text_meeting_empty_description_2) }+ endend- flex.with_row(mb: 2) do- render(Primer::Beta::Text.new(color: :subtle)) { t(:text_meeting_empty_description_1) }- end- flex.with_row do- render(Primer::Beta::Text.new(color: :subtle)) { t(:text_meeting_empty_description_2) }- endif can_finalize_template?flex.with_row(mt: 2) dorender(Primer::Beta::Text.new(font_weight: :bold, color: :subtle)) dodiff --git a/modules/meeting/app/components/meeting_agenda_items/list_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/list_component.html.erbindex 3941939e176..174a85ae63b 100644--- a/modules/meeting/app/components/meeting_agenda_items/list_component.html.erb+++ b/modules/meeting/app/components/meeting_agenda_items/list_component.html.erb@@ -1,7 +1,7 @@<%=component_wrapper(data: wrapper_data_attributes) doflex_layout(mb: 3) do |flex|- if @meeting.template?+ if @meeting.template? && !empty?flex.with_row(mb: 3) dorender Primer::Alpha::Banner.new(scheme: :default,icon: :info,@@ -21,7 +21,7 @@))end- if @meeting.agenda_items.empty? && @meeting.sections.empty?+ if empty?flex.with_row dorender(border_box_container) do |border_box|if @form_hiddendiff --git a/modules/meeting/app/components/meeting_agenda_items/list_component.rb b/modules/meeting/app/components/meeting_agenda_items/list_component.rbindex 92cd53f9b06..709fd947170 100644--- a/modules/meeting/app/components/meeting_agenda_items/list_component.rb+++ b/modules/meeting/app/components/meeting_agenda_items/list_component.rb@@ -40,6 +40,10 @@ module MeetingAgendaItems@form_type = form_typeend+ def empty?+ @meeting.agenda_items.empty? && @meeting.sections.empty?+ end+privatedef wrapper_data_attributes