From 7217bf41c108e6e3f84b6b1c96a1f7a60470f1f2 Mon Sep 17 00:00:00 2001 From: Bjorn Forsberg Date: Fri, 1 Dec 2023 12:58:33 +0100 Subject: [PATCH] Make change easier to read --- app/views/imports/_import.html.erb | 54 +++++++++++++++--------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/app/views/imports/_import.html.erb b/app/views/imports/_import.html.erb index 035d14a..02603e3 100644 --- a/app/views/imports/_import.html.erb +++ b/app/views/imports/_import.html.erb @@ -1,37 +1,37 @@ <%= turbo_stream_from import %> -<%= polaris_card do %> - <%= polaris_vertical_stack(gap: "6") do |stack| %> + <%= polaris_card do %> + <%= polaris_vertical_stack(gap: "6") do |stack| %> - <%= polaris_stack(alignment: :center) do |nested_stack| %> - <% nested_stack.with_item do %> - <%= polaris_icon(name: "DynamicSourceMajor", color: :base) %> + <%= polaris_stack(alignment: :center) do |nested_stack| %> + <% nested_stack.with_item do %> + <%= polaris_icon(name: "DynamicSourceMajor", color: :base) %> + <% end %> + <% nested_stack.with_item do %> + <%= polaris_text_strong { t("imports.source") } %>
+ <%= t("imports.sources.#{import.source}") %> + <% end %> <% end %> - <% nested_stack.with_item do %> - <%= polaris_text_strong { t("imports.source") } %>
- <%= t("imports.sources.#{import.source}") %> - <% end %> - <% end %> - <%= polaris_stack(alignment: :center) do |nested_stack| %> - <% nested_stack.with_item do %> - <%= polaris_icon(name: "CashDollarMajor", color: :base) %> + <%= polaris_stack(alignment: :center) do |nested_stack| %> + <% nested_stack.with_item do %> + <%= polaris_icon(name: "CashDollarMajor", color: :base) %> + <% end %> + <% nested_stack.with_item do %> + <%= polaris_text_strong { t("imports.imported") } %>
+ <%= number_with_delimiter(import.payments.count) %> <%= t("imports.payments") %> + <% end %> <% end %> - <% nested_stack.with_item do %> - <%= polaris_text_strong { t("imports.imported") } %>
- <%= number_with_delimiter(import.payments.count) %> <%= t("imports.payments") %> - <% end %> - <% end %> - <%= polaris_stack(alignment: :center) do |nested_stack| %> - <% nested_stack.with_item do %> - <%= polaris_icon(name: "CalendarTimeMinor", color: :base) %> + <%= polaris_stack(alignment: :center) do |nested_stack| %> + <% nested_stack.with_item do %> + <%= polaris_icon(name: "CalendarTimeMinor", color: :base) %> + <% end %> + <% nested_stack.with_item do %> + <%= polaris_text_strong { t("imports.metrics_date_range") } %>
+ <%= metrics_date_range_text(import)%> + <% end %> <% end %> - <% nested_stack.with_item do %> - <%= polaris_text_strong { t("imports.metrics_date_range") } %>
- <%= metrics_date_range_text(import)%> - <% end %> - <% end %> + <% end %> <% end %> -<% end %>