Skip to content

Commit 2e842b9

Browse files
committed
feat(ScheduleFinderLive): school days only badge
1 parent ef88dab commit 2e842b9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/dotcom_web/live/schedule_finder_live.ex

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,15 @@ defmodule DotcomWeb.ScheduleFinderLive do
375375
<div class="flex items-center gap-sm w-full">
376376
<RouteComponents.route_icon route={@route} size="small" />
377377
<div>
378-
{departure.headsign}
378+
<div class="flex gap-x-sm gap-y-xs flex-wrap">
379+
<.badge
380+
:if={departure.time_desc == "School days only"}
381+
class="bg-charcoal-80 text-nowrap text-sm"
382+
>
383+
{~t"School days only"}
384+
</.badge>
385+
{departure.headsign}
386+
</div>
379387
<div :if={@route.type == 2 && departure.trip_name} class="text-sm">
380388
{~t(Train)} {departure.trip_name}
381389
</div>

0 commit comments

Comments
 (0)