<%= img_tag( PlausibleWeb.Router.Helpers.static_path( @conn, logo_path("logo_dark.svg") ), class: "w-44 -mt-2 hidden dark:inline", alt: "Plausible logo", loading: "lazy" ) %> <%= img_tag( PlausibleWeb.Router.Helpers.static_path( @conn, logo_path("logo_light.svg") ), class: "w-44 -mt-2 inline dark:hidden", alt: "Plausible logo", loading: "lazy" ) %>
<%= cond do %> <% @conn.assigns[:current_user] -> %>
  • <%= link(trial_notificaton(@conn.assigns[:current_user]), to: "/settings", class: "text-sm text-yellow-900 dark:text-yellow-900 rounded px-3 py-2 rounded-md bg-yellow-100 dark:bg-yellow-100" ) %>
  • <.dropdown> <:button class="flex items-center gap-3 px-3 py-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800"> <%= @conn.assigns[:current_user].name %> <%= img_tag(Plausible.Auth.User.profile_img_url(@conn.assigns[:current_user]), class: "w-7 rounded-full" ) %> <:panel class="absolute right-0 z-10 mt-2 w-60 origin-top-right divide-y divide-gray-100 dark:divide-gray-400 rounded-md bg-white dark:bg-gray-800 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">

    Signed in as

    <%= @conn.assigns[:current_user].email %>

    <.dropdown_link href="/settings">Account Settings <.dropdown_link new_tab href="https://plausible.io/docs"> Help Center <%= if full_build?() do %> <.dropdown_link new_tab href="https://plausible.io/contact"> Contact Support <.dropdown_link new_tab href={feedback_link(@conn.assigns[:current_user])}> Feature Requests <% else %> <.dropdown_link new_tab href="https://github.com/plausible/analytics"> Github Repo <% end %>
    <.dropdown_link href="/logout">Log Out
  • <%= if @conn.assigns[:current_user] && full_build?() do %>
  • <% end %>
<% Keyword.fetch!(Application.get_env(:plausible, :selfhost), :disable_registration) != false -> %>
  • Login
<% true -> %>
  • Login
    Sign up
<% end %>