mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
8 lines
162 B
Elixir
8 lines
162 B
Elixir
|
defmodule PhilomenaWeb.BanView do
|
||
|
use PhilomenaWeb, :view
|
||
|
|
||
|
def active?(ban) do
|
||
|
NaiveDateTime.diff(ban.valid_until, NaiveDateTime.utc_now()) > 0
|
||
|
end
|
||
|
end
|