Skip to content

Commit 7f137bf

Browse files
committed
Show fewer older items
1 parent 8bbba3e commit 7f137bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/components_guide_web/controllers/calendar_controller.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ defmodule ComponentsGuideWeb.CalendarController do
124124

125125
defp include_date?({_, {date, type}}, today) do
126126
case {type, Date.diff(Date.from_erl!(date), today)} do
127-
{:end_of_life, x} when x in -400..400 -> true
128-
{_, x} when x in -100..300 -> true
127+
{type, x} when type in [:end_of_life, :deprecation_phase_2] and x in -400..400 -> true
128+
{_, x} when x in -50..300 -> true
129129
_ -> false
130130
end
131131
end

0 commit comments

Comments
 (0)