mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-17 22:47:59 +01:00
use :cdn_host from env (fixes philomena-dev/philomena#54)
This commit is contained in:
parent
1e2c57d8e8
commit
b5bc7d2d6b
2 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
noscript.flash.flash--warning
|
noscript.flash.flash--warning
|
||||||
strong You don't appear to have Javascript enabled
|
strong You don't appear to have Javascript enabled
|
||||||
' If you're using an add-on like NoScript, please allow
|
' If you're using an add-on like NoScript, please allow
|
||||||
' :cdn_host
|
=> cdn_host()
|
||||||
' for the site to work properly.
|
' for the site to work properly.
|
||||||
= if get_flash(@conn, :info) do
|
= if get_flash(@conn, :info) do
|
||||||
.flash.flash--success = get_flash(@conn, :info)
|
.flash.flash--success = get_flash(@conn, :info)
|
||||||
|
|
|
@ -18,6 +18,10 @@ defmodule PhilomenaWeb.LayoutView do
|
||||||
|> Float.to_string()
|
|> Float.to_string()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def cdn_host do
|
||||||
|
Application.get_env(:philomena, :cdn_host)
|
||||||
|
end
|
||||||
|
|
||||||
defp ignored_tag_list(nil), do: []
|
defp ignored_tag_list(nil), do: []
|
||||||
defp ignored_tag_list([]), do: []
|
defp ignored_tag_list([]), do: []
|
||||||
defp ignored_tag_list([{tag, _body, _dnp_entries}]), do: [tag.id]
|
defp ignored_tag_list([{tag, _body, _dnp_entries}]), do: [tag.id]
|
||||||
|
|
Loading…
Reference in a new issue