~sbaildon/courtesy

d130efb3485ac60f53f339d9e3bdb300b0e5497d — Sean Baildon 6 months ago 4e38acb main
html availability notifications
1 files changed, 16 insertions(+), 0 deletions(-)

M lib/concierge/notifiers/availability_notifier.ex
M lib/concierge/notifiers/availability_notifier.ex => lib/concierge/notifiers/availability_notifier.ex +16 -0
@@ 36,6 36,22 @@ defmodule Courtesy.AvailabilityNotifier do
    #{gettext("and")}
    #{datefmt(check_out)}
    """)
    |> html_body("""
    <p>
    #{gettext("%{property_name} has availability beetween", property_name: property.name)}
    </p>

    <p>
      <span>#{datefmt(check_in)}</span>
      <br />
      <span>#{gettext("and")}</span>
      <br />
      <span>#{datefmt(check_out)}</span>
    </p>

    <hr />
    <a href={{{ pm:unsubscribe }}}>Unsubscribe from availability notifications</a>
    """)
  end

  defp datefmt(date) do