philomena/lib/philomena_web/views/profile/commission_view.ex

11 lines
258 B
Elixir
Raw Normal View History

2019-12-04 09:28:17 -05:00
defmodule PhilomenaWeb.Profile.CommissionView do
use PhilomenaWeb, :view
2019-12-04 11:35:06 -05:00
alias Philomena.Commissions.Commission
def categories, do: Commission.categories()
def current?(%{id: id}, %{id: id}), do: true
def current?(_user1, _user2), do: false
2019-12-04 09:28:17 -05:00
end