diff --git a/app/views/family_exports/_list.html.erb b/app/views/family_exports/_list.html.erb deleted file mode 100644 index 5d266eda8..000000000 --- a/app/views/family_exports/_list.html.erb +++ /dev/null @@ -1,77 +0,0 @@ -<%= turbo_frame_tag "family_exports", - data: exports.any? { |e| e.pending? || e.processing? } ? { - turbo_refresh_url: family_exports_path, - turbo_refresh_interval: 3000 - } : {} do %> -
- <% if exports.any? %> - <% exports.each do |export| %> -
-
-
-

<%= t("family_exports.list.export_from", date: l(export.created_at, format: :long)) %>

-

<%= export.filename %>

-
- - <% if export.processing? || export.pending? %> - - <%= t(".in_progress") %> - - <% elsif export.completed? %> - - <%= t(".complete") %> - - <% elsif export.failed? %> - - <%= t(".failed") %> - - <% end %> -
- - <% if export.processing? || export.pending? %> -
-
- <%= t("family_exports.exporting") %> -
- <% elsif export.completed? %> -
- <%= button_to family_export_path(export), - method: :delete, - class: "flex items-center gap-2 text-destructive hover:text-destructive-hover", - data: { - turbo_confirm: t("family_exports.delete_confirmation"), - turbo_frame: "_top" - } do %> - <%= icon "trash-2", class: "w-5 h-5 text-destructive" %> - <% end %> - - <%= link_to download_family_export_path(export), - class: "flex items-center gap-2 text-primary hover:text-primary-hover", - data: { turbo_frame: "_top" } do %> - <%= icon "download", class: "w-5 h-5" %> - <% end %> -
- <% elsif export.failed? %> -
-
- <%= icon "alert-circle", class: "w-4 h-4" %> -
- - <%= button_to family_export_path(export), - method: :delete, - class: "flex items-center gap-2 text-destructive hover:text-destructive-hover", - data: { - turbo_confirm: t("family_exports.delete_failed_confirmation"), - turbo_frame: "_top" - } do %> - <%= icon "trash-2", class: "w-5 h-5 text-destructive" %> - <% end %> -
- <% end %> -
- <% end %> - <% else %> -

<%= t("family_exports.index.no_exports") %>

- <% end %> -
-<% end %>