philomena/lib/philomena_web/views/comment_view.ex

7 lines
194 B
Elixir
Raw Normal View History

2019-10-05 02:51:56 +02:00
defmodule PhilomenaWeb.CommentView do
use PhilomenaWeb, :view
2019-12-11 23:21:14 +01:00
defp comment_body_class(%{destroyed_content: true}), do: "comment--destroyed"
defp comment_body_class(_comment), do: nil
2019-10-05 02:51:56 +02:00
end