analytics/lib/plausible_web/templates
Vini Brasil c0fe2a3996
Implement Stats API feature gate (#3411)
* Include ApiKey functions in Auth context

* Make feature notice work without %Site{}

Previously the extra feature notice required a %Site{} in order to check
the owner plan. However, not every feature is scoped by site, for
example the Stats API. For features like this, a %User{} is required,
and not a %Site{}.

This commit replaces the `:site` param with `:billable_user`, which is
common to both site and user-scoped features.

* Add stats_api to the list of extra features

* Limit API Key creation based on user plan
2023-10-11 17:24:16 -03:00
..
auth Implement Stats API feature gate (#3411) 2023-10-11 17:24:16 -03:00
billing Refactor enterprise plan upgrade and change-plan actions (#3397) 2023-10-10 20:35:17 +03:00
email Some changes to the onboarding email copy (#3392) 2023-10-11 09:38:40 -03:00
error Add login link to 404 page (#3288) 2023-08-22 08:45:38 +02:00
layout Refactor enterprise plan upgrade and change-plan actions (#3397) 2023-10-10 20:35:17 +03:00
page fix twitter link 2023-06-08 17:47:55 +08:00
site Implement Stats API feature gate (#3411) 2023-10-11 17:24:16 -03:00
stats Feature gates (#3401) 2023-10-11 09:40:01 -03:00
unsubscribe Adds dark mode to entire dashboard (#467) 2020-12-16 11:57:28 +02:00