diff --git a/assets/package-lock.json b/assets/package-lock.json index 2db912dcb..11781af6c 100644 --- a/assets/package-lock.json +++ b/assets/package-lock.json @@ -1,9 +1,11 @@ { "name": "assets", + "version": "1.4.0", "lockfileVersion": 2, "requires": true, "packages": { "": { + "version": "1.4.0", "license": "MIT", "dependencies": { "@babel/core": "^7.14.3", @@ -62,11 +64,11 @@ } }, "../deps/phoenix": { - "version": "1.4.17", + "version": "1.5.13", "license": "MIT" }, "../deps/phoenix_html": { - "version": "2.14.2" + "version": "2.14.3" }, "node_modules/@babel/code-frame": { "version": "7.12.13", diff --git a/lib/plausible_web/templates/layout/_notice.html.eex b/lib/plausible_web/templates/layout/_notice.html.eex index 069c9d215..1572644f4 100644 --- a/lib/plausible_web/templates/layout/_notice.html.eex +++ b/lib/plausible_web/templates/layout/_notice.html.eex @@ -2,6 +2,55 @@ <%= render("_flash.html", assigns) %> <% end %> + +<%= if on_grace_period?(@conn.assigns[:current_user]) do %> +
+ In order to keep your stats running, we require you to upgrade your account. If you do not upgrade your account <%= grace_period_end(@conn.assigns[:current_user]) %>, we will lock your sites and they won't be accessible. <%= link("Upgrade now →", to: "/settings", class: "text-sm font-medium text-yellow-800") %> +
++ As you have outgrown your subscription tier, we kindly ask you to upgrade your subscription to accommodate your new traffic levels. <%= link("Upgrade now →", to: "/settings", class: "text-sm font-medium text-yellow-800") %> +
+