diff --git a/config/config.exs.dist b/config/config.exs.dist index 7f2391b..68f4fce 100644 --- a/config/config.exs.dist +++ b/config/config.exs.dist @@ -50,6 +50,10 @@ config :mebe_web, """, + # Custom HTML for the footer of the site + # Set to nil to use default footer + custom_footer_html: nil, + # Custom templates # Set to true for any view you want to use custom templates for. # If using custom templates for a view, create a folder web/templates/custom/ diff --git a/web/templates/layout/app.html.eex b/web/templates/layout/app.html.eex index 19f2d27..60e7bad 100644 --- a/web/templates/layout/app.html.eex +++ b/web/templates/layout/app.html.eex @@ -36,26 +36,31 @@
<%= @inner %> - diff --git a/web/views/layout_view.ex b/web/views/layout_view.ex index 852e6a3..b3006f4 100644 --- a/web/views/layout_view.ex +++ b/web/views/layout_view.ex @@ -24,6 +24,11 @@ defmodule MebeWeb.LayoutView do """ def extra_html(), do: Utils.get_conf :extra_html + @doc """ + Return the custom footer HTML defined in the config. + """ + def custom_footer_html(), do: Utils.get_conf :custom_footer_html + @doc """ Calculate time taken for request so far. """