Skip to content

Commit

Permalink
hide billings and upgrade from ce
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Dec 18, 2024
1 parent 481045b commit 88bdda7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/plausible_web/templates/layout/settings.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
%{key: "Invoices", value: "billing/invoices", icon: :banknotes},
%{key: "API Keys", value: "api-keys", icon: :key},
%{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">
<.styled_link class="text-indigo-600 font-bold text-sm" href="/sites">
Expand Down

0 comments on commit 88bdda7

Please sign in to comment.