mirror of
https://github.com/plausible/analytics.git
synced 2024-12-22 17:11:36 +03:00
e71de6dc1f
* Invite existing user to a site * Add invitation flow for non-existing users * Accept and reject invitations * Use invitation flow for existing users * Locking mechanism for sites * Authorization for site settings * Show usage based on site ownership * Add ability to remove members from a site * Do not show settings link to viewer roles * Ability to remove invitations * Remove `Plausible.Sites.count_for/1` * Fix tests * Do not show the trial banner after the trial * Correct trial emails * Transfer ownership * Send invitation email to existing user * Add invitation email flows * Add plug for role-based authorization * Rename AuthorizeStatsPlug -> AuthorizeSiteAccess * Add email flow for ownership transfer * Fix URLs in emails * Fix small copy issues * Make 'People' its own section in site settings * Notify user via email if their access has been removed * Check site lock status when invitation is accepted * Check lock status when user subscribes * Make sure only admins and owners can create shared links * Changelog * Add LockSites to daily cron * Clean invitations after 48 hours * Add notices about expiry * Add invitation expired page * Add doc link
33 lines
2.0 KiB
Elixir
33 lines
2.0 KiB
Elixir
<div class="w-full max-w-lg mx-auto mt-8">
|
|
<div class="bg-white shadow sm:rounded-lg">
|
|
<div class="px-4 py-5 sm:px-8 sm:py-6">
|
|
<div class="mx-auto flex items-center justify-center rounded-full bg-green-100 h-12 w-12">
|
|
<svg class="w-6 h-6 text-green-600" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z" clip-rule="evenodd"></path></svg>
|
|
</div>
|
|
<h3 class="mt-6 text-center text-2xl leading-6 font-medium text-gray-900">
|
|
Site locked
|
|
</h3>
|
|
|
|
<%= if @conn.assigns[:current_user_role] == :owner do %>
|
|
<div class="mt-3 text-gray-500 text-center">
|
|
<p>
|
|
This site is locked because you don't have an active subscription. We are still counting stats in the background but your access to the dashboard is restricted. Subscribe with the link below to access your stats again.
|
|
</p>
|
|
</div>
|
|
<div class="mt-6 w-full text-center">
|
|
<%= 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") %>
|
|
</div>
|
|
<% else %>
|
|
<div class="mt-3 text-gray-500 text-center">
|
|
<p>
|
|
This site is currently locked and cannot be accessed. You can check back later or contact the site owner to unlock it.
|
|
</p>
|
|
</div>
|
|
<div class="mt-6 w-full text-center">
|
|
<%= 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") %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|