|
5 | 5 | </h2>
|
6 | 6 | <p class="mt-1 text-sm leading-5 text-gray-500 dark:text-gray-200">
|
7 | 7 | Import existing data from external sources.
|
8 |
| - <%= if FunWithFlags.enabled?(:csv_imports_exports, for: @site) do %> |
9 |
| - Pick one of the options below to start a new import. |
10 |
| - <% else %> |
11 |
| - Click below to start a new import. |
12 |
| - <% end %> |
| 8 | + Pick one of the options below to start a new import. |
13 | 9 | </p>
|
14 | 10 |
|
15 | 11 | <PlausibleWeb.Components.Generic.docs_info slug="google-analytics-import" />
|
|
20 | 16 | ) %>
|
21 | 17 | </div>
|
22 | 18 |
|
23 |
| -<%= if FunWithFlags.enabled?(:csv_imports_exports, for: @site) or Plausible.Auth.is_super_admin?(@current_user) do %> |
24 |
| - <div class="shadow bg-white dark:bg-gray-800 dark:text-gray-200 sm:rounded-md sm:overflow-hidden py-6 px-4 sm:p-6"> |
25 |
| - <header class="relative border-b border-gray-200 pb-4 mb-5"> |
26 |
| - <h2 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-100"> |
27 |
| - Export Data |
28 |
| - </h2> |
29 |
| - <p class="mt-1 text-sm leading-5 text-gray-500 dark:text-gray-200"> |
30 |
| - Export all your data into CSV format. |
31 |
| - </p> |
32 |
| - </header> |
| 19 | +<div class="shadow bg-white dark:bg-gray-800 dark:text-gray-200 sm:rounded-md sm:overflow-hidden py-6 px-4 sm:p-6"> |
| 20 | + <header class="relative border-b border-gray-200 pb-4 mb-5"> |
| 21 | + <h2 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-100"> |
| 22 | + Export Data |
| 23 | + </h2> |
| 24 | + <p class="mt-1 text-sm leading-5 text-gray-500 dark:text-gray-200"> |
| 25 | + Export all your data into CSV format. |
| 26 | + </p> |
| 27 | + </header> |
33 | 28 |
|
34 |
| - <%= live_render(@conn, PlausibleWeb.Live.CSVExport, |
35 |
| - session: %{ |
36 |
| - "site_id" => @site.id, |
37 |
| - "email_to" => @current_user.email, |
38 |
| - "storage" => on_ee(do: "s3", else: "local") |
39 |
| - } |
40 |
| - ) %> |
41 |
| - </div> |
42 |
| -<% end %> |
| 29 | + <%= live_render(@conn, PlausibleWeb.Live.CSVExport, |
| 30 | + session: %{ |
| 31 | + "site_id" => @site.id, |
| 32 | + "email_to" => @current_user.email, |
| 33 | + "storage" => on_ee(do: "s3", else: "local") |
| 34 | + } |
| 35 | + ) %> |
| 36 | +</div> |
0 commit comments