Skip to content

Commit

Permalink
Track change tooltip includes markup (#1766)
Browse files Browse the repository at this point in the history
* remove content tag wrapper

* index into array

* new line for multiple tooltips
  • Loading branch information
i0sea authored Oct 11, 2023
1 parent 712686c commit b8a3816
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/site/lib/site_web/views/schedule/timetable.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ defmodule SiteWeb.ScheduleView.Timetable do
end

defp do_stop_tooltip(contents) do
content_tag(:p, Enum.join(contents, "<br>"), class: "stop-tooltip")
|> safe_to_string
|> String.replace(~s("), ~s('))
Enum.join(contents, "\n")
end

@spec stop_type(Schedule.t()) :: nil | Phoenix.HTML.Safe.t()
Expand Down

0 comments on commit b8a3816

Please sign in to comment.