hide billings and upgrade from ce (#4897)

This commit is contained in:
ruslandoga 2024-12-19 01:37:47 +07:00 committed by GitHub
parent 481045b817
commit 1fa3f98604
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,14 @@
%{key: "Invoices", value: "billing/invoices", icon: :banknotes}, %{key: "Invoices", value: "billing/invoices", icon: :banknotes},
%{key: "API Keys", value: "api-keys", icon: :key}, %{key: "API Keys", value: "api-keys", icon: :key},
%{key: "Danger Zone", value: "danger-zone", icon: :exclamation_triangle} %{key: "Danger Zone", value: "danger-zone", icon: :exclamation_triangle}
] %> ]
options =
if Plausible.ee?() do
options
else
Enum.reject(options, fn option -> String.contains?(option.value, "billing") end)
end %>
<div class="container pt-6"> <div class="container pt-6">
<.styled_link class="text-indigo-600 font-bold text-sm" href="/sites"> <.styled_link class="text-indigo-600 font-bold text-sm" href="/sites">