From d7f70ea696e6c5ad8edc1e752c1f39dd1148aaee Mon Sep 17 00:00:00 2001 From: AymanTerra Date: Sat, 6 Feb 2021 06:41:13 +0200 Subject: [PATCH] Embeddable mode #213 --- .../templates/layout/_embed_mode_footer.html.eex | 13 +++++++++++++ lib/plausible_web/templates/layout/app.html.eex | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 lib/plausible_web/templates/layout/_embed_mode_footer.html.eex diff --git a/lib/plausible_web/templates/layout/_embed_mode_footer.html.eex b/lib/plausible_web/templates/layout/_embed_mode_footer.html.eex new file mode 100644 index 000000000000..68fcaae836f1 --- /dev/null +++ b/lib/plausible_web/templates/layout/_embed_mode_footer.html.eex @@ -0,0 +1,13 @@ +
+
+
+
+

+ Powered by + + Plausible Analytics +

+
+
+
+
\ No newline at end of file diff --git a/lib/plausible_web/templates/layout/app.html.eex b/lib/plausible_web/templates/layout/app.html.eex index a0272ed25fcc..709ab9b1a45d 100644 --- a/lib/plausible_web/templates/layout/app.html.eex +++ b/lib/plausible_web/templates/layout/app.html.eex @@ -154,6 +154,8 @@ <%= if !(@conn.assigns[:embed_mode] && @conn.assigns.site.embeddable) do %> <%= render("_footer.html", assigns) %> + <% else %> + <%= render("_embed_mode_footer.html", assigns) %> <% end %>