mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
12 lines
235 B
Elixir
12 lines
235 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
|