mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
11 lines
242 B
Elixir
11 lines
242 B
Elixir
defmodule PhilomenaWeb.AdvertView do
|
|
use PhilomenaWeb, :view
|
|
|
|
def advert_image_url(%{image: image}) do
|
|
advert_url_root() <> "/" <> image
|
|
end
|
|
|
|
defp advert_url_root do
|
|
Application.get_env(:philomena, :advert_url_root)
|
|
end
|
|
end
|