diff --git a/lib/dotcom/body_tag.ex b/lib/dotcom/body_tag.ex index 27c473b4c6..ae1a50d93f 100644 --- a/lib/dotcom/body_tag.ex +++ b/lib/dotcom/body_tag.ex @@ -9,17 +9,7 @@ defmodule Dotcom.BodyTag do UI elements. """ - alias PhoenixHTMLHelpers.Tag - - @spec render(Plug.Conn.t()) :: Phoenix.HTML.Safe.t() - def render(conn) do - Tag.tag( - :body, - class: class_name(conn) - ) - end - - defp class_name(conn) do + def class_name(conn) do [ javascript_class(), mticket_class(conn), diff --git a/lib/dotcom_web.ex b/lib/dotcom_web.ex index d9252994e8..6a566d9574 100644 --- a/lib/dotcom_web.ex +++ b/lib/dotcom_web.ex @@ -69,6 +69,7 @@ defmodule DotcomWeb do project_path: 3, project_update_path: 3, project_update_path: 4, + static_integrity: 2, static_url: 2 ] diff --git a/lib/dotcom_web/templates/fare/proposed_sales_locations.html.heex b/lib/dotcom_web/templates/fare/proposed_sales_locations.html.heex index 142b46225c..ea01c4a062 100644 --- a/lib/dotcom_web/templates/fare/proposed_sales_locations.html.heex +++ b/lib/dotcom_web/templates/fare/proposed_sales_locations.html.heex @@ -33,7 +33,12 @@ <% else %> - <% end %> diff --git a/lib/dotcom_web/templates/fare/retail_sales_locations.html.heex b/lib/dotcom_web/templates/fare/retail_sales_locations.html.heex index e30b8dc1b1..773a752457 100644 --- a/lib/dotcom_web/templates/fare/retail_sales_locations.html.heex +++ b/lib/dotcom_web/templates/fare/retail_sales_locations.html.heex @@ -18,7 +18,12 @@ <% else %> - <% end %> diff --git a/lib/dotcom_web/templates/layout/root.html.eex b/lib/dotcom_web/templates/layout/root.html.eex deleted file mode 100644 index cbd1103ce8..0000000000 --- a/lib/dotcom_web/templates/layout/root.html.eex +++ /dev/null @@ -1,111 +0,0 @@ - - -
- - - - <%= csrf_meta_tag() %> - <% meta_description = assigns[:meta_description] || "Official website of the MBTA -- schedules, maps, and fare information for Greater Boston's public transportation system, including subway, commuter rail, bus routes, and boat lines." %> - - - - - <%= # hide any page in /org directory from search engines - if @conn.request_path == "/org" || String.slice(@conn.request_path, 0..4) == "/org/" do %> - - <% end %> - <%= # hide any page in /charlie directory from search engines - if @conn.request_path == "/charlie" || String.slice(@conn.request_path, 0..8) == "/charlie/" do %> - - <% end %> - <%= # hide any page in /policies/terms-use-charlie directory from search engines - if @conn.request_path == "/policies/terms-use-charlie" || String.slice(@conn.request_path, 0..26) == "/policies/terms-use-charlie" do %> - - <% end %> - <% title = if Phoenix.Controller.view_template(@conn) == "404.html", do: "Page Not Found | MBTA - Massachusetts Bay Transportation Authority", else: title_breadcrumbs(@conn) %> -