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
[57911] Improve participants side panel phrasing and spacing
Christophe Bliardf76c6db48c39
diff --git a/app/components/op_primer/expandable_list_component.html.erb b/app/components/op_primer/expandable_list_component.html.erbindex 54584982f41..b997e9f6fe5 100644--- a/app/components/op_primer/expandable_list_component.html.erb+++ b/app/components/op_primer/expandable_list_component.html.erb@@ -13,31 +13,26 @@elements.take(@cutoff_limit).each do |item|list.with_row(mt: 1) { item.to_s }end-- list.with_row do- flex_layout do |flex|- flex.with_row(display: :none, data: { "expandable-list-target": "hiddenElements" }) do- flex_layout do |hidden_user_list|- elements[@cutoff_limit..].each do |item|- hidden_user_list.with_row(mt: 1) { item.to_s }- end- hidden_user_list.with_row(mt: 2) do- render(Primer::Beta::Button.new(- scheme: :link,- data: { action: "expandable-list#hideElements" }- )) { I18n.t("label_hide_n_items", count: elements.count - @cutoff_limit) }- end- end+ list.with_row(display: :none, data: { "expandable-list-target": "hiddenElements" }) do+ flex_layout do |hidden_user_list|+ elements[@cutoff_limit..].each do |item|+ hidden_user_list.with_row(mt: 1) { item.to_s }end- flex.with_row(mt: 2) do+ hidden_user_list.with_row(mt: 2) dorender(Primer::Beta::Button.new(scheme: :link,- data: { "expandable-list-target": "showButton",- action: "expandable-list#showElements" }- )) { I18n.t("label_show_n_items", count: elements.count - @cutoff_limit) }+ data: { action: "expandable-list#hideElements" }+ )) { I18n.t("label_show_less") }endendend+ list.with_row(mt: 2) do+ render(Primer::Beta::Button.new(+ scheme: :link,+ data: { "expandable-list-target": "showButton",+ action: "expandable-list#showElements" }+ )) { I18n.t("label_show_n_more", count: elements.count - @cutoff_limit) }+ endendendenddiff --git a/config/locales/en.yml b/config/locales/en.ymlindex b65e0a0b44e..24ae92a8232 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -2255,9 +2255,6 @@ en:label_home: "Home"label_subject_or_id: "Subject or ID"label_calendar_subscriptions: "Calendar subscriptions"- label_hide_n_items:- one: "Hide %{count} item"- other: "Hide %{count} items"label_identifier: "Identifier"label_in: "in"label_in_less_than: "in less than"@@ -2278,11 +2275,9 @@ en:label_share: "Share"label_share_project_list: "Share project list"label_share_work_package: "Share work package"- label_show_hide: "Show/hide"- label_show_n_items:- one: "Show %{count} item"- other: "Show %{count} items"label_show_all_registered_users: "Show all registered users"+ label_show_n_more: "Show %{count} more"+ label_show_less: "Show less"label_journal: "Journal"label_journal_diff: "Description Comparison"label_language: "Language"diff --git a/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb b/modules/meeting/app/components/meetings/side_panel/participants_component.html.erbindex ea78608cd51..f487a08ec51 100644--- a/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb+++ b/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb@@ -2,7 +2,6 @@component_wrapper dorender(Primer::OpenProject::SidePanel::Section.new) do |section|section.with_title { Meeting.human_attribute_name(:participants) }- section.with_description { I18n.t('meeting.attachments.text') }section.with_counter(count: @meeting.invited_or_attended_participants.count)if @meeting.editable?@@ -21,12 +20,6 @@component_wrapper(data: wrapper_data_attributes) doflex_layout do |participants_container|participants_container.with_row do- flex_layout(align_items: :center, justify_content: :space_between) do |heading|-- end- end-- participants_container.with_row(mt: 2) dorender(OpPrimer::ExpandableListComponent.new(cutoff_limit: 5)) do |list|elements.each do |item|list.with_element { render_participant(item) }