From bad50824eeeb76c171abc9cf5ab9f72e7237350e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Stordahl?= Date: Mon, 30 Jul 2018 15:21:59 +0200 Subject: [PATCH] Layout: Link to static content using static_path rahter than static_url Otherwise links to static resources in ExAdmin will not work in applications that only responds to requests for subdomains of the domain name and not the main (second-level) domain itself, for example as described here: https://blog.gazler.com/blog/2015/07/18/subdomains-with-phoenix/ --- web/templates/layout/active_admin.html.eex | 6 +++--- web/templates/layout/admin_lte2.html.eex | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/templates/layout/active_admin.html.eex b/web/templates/layout/active_admin.html.eex index fbbb28a1..d03da1ad 100644 --- a/web/templates/layout/active_admin.html.eex +++ b/web/templates/layout/active_admin.html.eex @@ -10,10 +10,10 @@ <%= favicon() %> <%= site_title() %> - "> + "> - + <%= case Application.get_env(:ex_admin, :head_template) do {layout, template} -> @@ -55,7 +55,7 @@ - + + @@ -69,8 +69,8 @@ $.widget.bridge('uibutton', $.ui.button); - - + +