From 07a693a38a64f7b1354d51cec05a0734c8eb062b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 9 Dec 2024 08:25:26 +0100 Subject: [PATCH] Consistent segmented control for meetings --- .../show_page_sub_header_component.html.erb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb b/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb index bb7af0046c89..49d2e2e15419 100644 --- a/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb +++ b/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb @@ -6,15 +6,17 @@ subheader.with_filter_component do render(Primer::Alpha::SegmentedControl.new("aria-label": I18n.t(:label_filter_plural))) do |control| control.with_item(tag: :a, - href: recurring_meeting_path(@meeting, direction: :past), - label: t(:label_past_meetings_short), - title: t(:label_past_meetings), - selected: @params[:direction] == "past") - control.with_item(tag: :a, + icon: :"arrow-right", href: recurring_meeting_path(@meeting), label: t(:label_upcoming_meetings_short), title: t(:label_upcoming_meetings), selected: @params[:direction] != "past") + control.with_item(tag: :a, + icon: :history, + href: recurring_meeting_path(@meeting, direction: :past), + label: t(:label_past_meetings_short), + title: t(:label_past_meetings), + selected: @params[:direction] == "past") end end end %>