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

11 lines
258 B
Elixir
Raw Permalink Normal View History

2019-12-04 15:28:17 +01:00
defmodule PhilomenaWeb.Profile.CommissionView do
use PhilomenaWeb, :view
2019-12-04 17:35:06 +01: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 15:28:17 +01:00
end