Skip to content

Commit

Permalink
feat(SumnerTunnel): Remove fare note from itinerary about closure
Browse files Browse the repository at this point in the history
  • Loading branch information
kotva006 committed Aug 21, 2023
1 parent bc1ba53 commit 0cc78e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
27 changes: 0 additions & 27 deletions apps/site/lib/site_web/templates/trip_plan/_itinerary_tab.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,3 @@
<%= @itinerary |> TripPlan.Itinerary.walking_distance |> display_meters_as_miles %> mi
</span>
</div>

<%= if @itinerary_contains_blue_line and @is_sumner_tunnel_closed_period do%>
<div class="d-flex pt-8">
<%= icon_for_route(%Route{id: "Blue"}) %>
<span class="ps-8">
<b>Fare Change</b>: All Blue Line trips are <b>free</b> from July 5 through August 31, 2023.
</span>
</div>
<% end %>

<%= if @itinerary_contains_east_boston_ferry and @is_sumner_tunnel_closed_period do%>
<div class="d-flex pt-8">
<%= icon_for_route(:ferry) %>
<span class="ps-8">
<b>Fare Change</b>: All East Boston Ferry trips are <b>free</b> from July 5 through August 31, 2023.
</span>
</div>
<% end %>

<%= if @itinerary_contains_newburyport_rockport_line and @is_sumner_tunnel_closed_period do%>
<div class="d-flex pt-8">
<%= icon_for_route(:commuter_rail) %>
<span class="ps-8">
<b>Fare Change</b>: All Newburyport/Rockport Line trips are $2.40 from July 5 through August 31, 2023.
</span>
</div>
<% end %>
15 changes: 0 additions & 15 deletions apps/site/lib/site_web/views/trip_plan_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -458,16 +458,6 @@ defmodule SiteWeb.TripPlanView do
conn.assigns.itinerary_row_lists,
Stream.iterate(1, &(&1 + 1))
]) do
is_sumner_tunnel_closed_period =
Timex.between?(i.start, ~D[2023-07-05], ~D[2023-08-31], inclusive: true)

itinerary_contains_blue_line = itinerary_satisfies_property?(i, :contains_blue_line)

itinerary_contains_east_boston_ferry =
itinerary_satisfies_property?(i, :contains_east_boston_ferry)

itinerary_contains_newburyport_rockport_line =
itinerary_satisfies_property?(i, :contains_newburyport_rockport_line)

tab_html =
"_itinerary_tab.html"
Expand All @@ -476,11 +466,6 @@ defmodule SiteWeb.TripPlanView do
index: index,
routes: routes,
itinerary_row_list: itinerary_row_list,
itinerary_contains_blue_line: itinerary_contains_blue_line,
itinerary_contains_east_boston_ferry: itinerary_contains_east_boston_ferry,
itinerary_contains_newburyport_rockport_line:
itinerary_contains_newburyport_rockport_line,
is_sumner_tunnel_closed_period: is_sumner_tunnel_closed_period
)

access_html = i |> accessibility_icon() |> HTML.safe_to_string()
Expand Down

0 comments on commit 0cc78e0

Please sign in to comment.