Current section
Files
Jump to
Current section
Files
lib/ex_admin/theme_helpers.ex
defmodule PhxAdmin.Theme.Helpers do
@moduledoc false
@default_theme PhxAdmin.Theme.AdminLte2
def theme_module(conn, module) do
Module.concat(conn.assigns.theme, module)
end
def theme_module(module) do
Application.get_env(:phx_admin, :theme, @default_theme)
|> Module.concat(module)
end
end