-
-
- Dashboard locked
-
-
- <%= case @conn.assigns[:current_user_role] do %>
- <% :owner -> %>
-
-
- This dashboard is locked because you don't have a valid subscription. We're still counting the stats but your access to the dashboard is restricted. Please subscribe to the appropriate tier with the link below to access the stats again.
-
-
-
- <%= link("Manage my subscription", to: "/settings", class: "inline-flex items-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm") %>
-
- <% role when role in [:admin, :viewer] -> %>
-
-
- This dashboard is currently locked and cannot be accessed. The site owner <%= @site.owner.email %> must upgrade their subscription plan in order to
- unlock the stats.
-
-
-
Want to pay for this site with the account you're logged in with?
-
Contact <%= @site.owner.email %> and ask them to <%= link("transfer the ownership", class: "text-indigo-500", to: "https://plausible.io/docs/transfer-ownership", rel: "noreferrer") %> of the site over to you
-
-
-
- <%= link("Back to my sites", to: "/sites", class: "inline-flex items-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm") %>
-
- <% _ -> %>
-
-
- This dashboard is currently locked and cannot be accessed. You can check back later or contact the site owner to unlock it.
-
-
- <%= if @conn.assigns[:current_user] do %>
-
- <%= link("Back to my sites", to: "/sites", class: "inline-flex items-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm") %>
-
- <% end %>
- <% end %>
-