Skip to content

Commit

Permalink
Consistent segmented control for meetings
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Dec 9, 2024
1 parent 5604aaf commit 07a693a
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>

0 comments on commit 07a693a

Please sign in to comment.