Current section

Files

Jump to
verk_web web views job_view.ex
Raw

web/views/job_view.ex

defmodule VerkWeb.JobView do
use VerkWeb.Web, :view
def info(process_info, key) do
Keyword.get(process_info, key)
end
def current_stacktrace(process_info) do
info(process_info, :current_stacktrace)
|> Exception.format_stacktrace
|> Phoenix.HTML.Format.text_to_html
end
def utc_format(time) do
time |> DateTime.to_string
end
end