frenzy/lib/frenzy_web/views/item_view.ex

8 lines
183 B
Elixir
Raw Normal View History

2019-02-11 22:22:35 +00:00
defmodule FrenzyWeb.ItemView do
use FrenzyWeb, :view
2021-08-28 15:58:22 +00:00
def title(:show, %{item: %Frenzy.Item{title: title}, feed: %Frenzy.Feed{title: feed}}) do
"#{title} | #{feed}"
end
end