Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 1 addition & 34 deletions lib/dotcom_web/templates/alert/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,7 @@
<:sidebar_bottom>
{render("_t-alerts.html")}
</:sidebar_bottom>
<:main_section :if={@id == :commuter_rail}>
<.alerts_commuter_rail_status commuter_rail_status={@commuter_rail_status} />
<.alerts_page_content_layout
{assigns}
empty_message={~t(There are no other) <> " #{format_alerts_timeframe(@alerts_timeframe)} #{mode_name(@id)} " <> ~t(alerts at this time) <> "."}
>
<:heading>
<h2 class="mt-8">{~t(Station & Service Alerts)}</h2>
</:heading>
<:alert_header_icon>
<MbtaMetro.Components.SystemIcons.mode_icon mode="commuter-rail" />
</:alert_header_icon>
</.alerts_page_content_layout>
</:main_section>
<:main_section :if={@id == :subway}>
<section class="mb-lg">
<.alerts_subway_status subway_status={@subway_status} />
</section>
<section id="planned" class="mb-lg">
<.disruptions disruptions={@disruption_groups} />
</section>
<.alerts_page_content_layout
{assigns}
empty_message={~t(There are no other) <> " #{format_alerts_timeframe(@alerts_timeframe)} #{mode_name(@id)} " <> ~t(alerts at this time) <> "."}
>
<:heading>
<h2 class="mt-0">{~t(Station & Service Alerts)}</h2>
</:heading>
<:alert_header_icon :let={route_or_stop}>
<.subway_route_pill route_ids={[route_or_stop.id]} />
</:alert_header_icon>
</.alerts_page_content_layout>
</:main_section>
<:main_section :if={@id != :commuter_rail && @id != :subway}>
<:main_section>
<.alerts_page_content_layout
{assigns}
empty_message={~t(There are no) <> " #{format_alerts_timeframe(@alerts_timeframe)} #{mode_name(@id)} " <> ~t(alerts at this time) <> "."}
Expand Down