Skip to content

Commit

Permalink
hide billings and upgrade from ce (#4897)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Jan 6, 2025
1 parent 4c2f131 commit cac2f4e
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 cac2f4e

Please sign in to comment.