philomena/lib/philomena_web/views/notification_view.ex

17 lines
387 B
Elixir
Raw Normal View History

2019-11-16 04:50:58 +01:00
defmodule PhilomenaWeb.NotificationView do
use PhilomenaWeb, :view
@template_paths %{
"Channel" => "_channel.html",
"Forum" => "_forum.html",
"Gallery" => "_gallery.html",
"Image" => "_image.html",
"LivestreamChannel" => "_channel.html",
"Topic" => "_topic.html"
}
def notification_template_path(actor_type) do
@template_paths[actor_type]
end
2020-01-11 05:20:19 +01:00
end