Current section

Files

Jump to
verk_web web views shared_view.ex
Raw

web/views/shared_view.ex

defmodule VerkWeb.SharedView do
use VerkWeb.Web, :view
def enqueued_at(nil), do: "N/A"
def enqueued_at(timestamp) do
timestamp |> round |> Timex.from_unix |> Timex.format!("{relative}", :relative)
end
end