diff --git a/app/views/reports/_breakdown_table.html.erb b/app/views/reports/_breakdown_table.html.erb index 7fb9df17f..4d456317f 100644 --- a/app/views/reports/_breakdown_table.html.erb +++ b/app/views/reports/_breakdown_table.html.erb @@ -14,107 +14,48 @@ (<%= Money.new(total, Current.family.currency).format %>) -
| <%= t("reports.transactions_breakdown.table.category") %> | -- <%= link_to reports_path(amount_sort_params), class: "inline-flex items-center gap-1 hover:text-primary" do %> - <%= t("reports.transactions_breakdown.table.amount") %> - <% if current_sort_by == "amount" %> - <%= icon(current_sort_direction == "desc" ? "chevron-down" : "chevron-up", class: "w-3 h-3") %> - <% end %> - <% end %> - | -<%= t("reports.transactions_breakdown.table.percentage") %> | -
|---|---|---|
|
-
- <% if group[:category_icon] %>
-
-
- <%= icon(group[:category_icon], color: "current", size: "sm") %>
-
- <% else %>
- <%= render DS::FilledIcon.new(
- variant: :text,
- hex_color: group[:category_color],
- text: group[:category_name],
- size: "md",
- rounded: true
- ) %>
- <% end %>
- <%= group[:category_name] %>
- (<%= t("reports.transactions_breakdown.table.entries", count: group[:count]) %>)
- |
- - - <%= Money.new(group[:total], Current.family.currency).format %> - - | -- - <%= percentage %>% - - | -
|
-
- <% if subcategory[:category_icon] %>
-
-
- <%= icon "corner-down-right" %>
-
-
- <%= icon(subcategory[:category_icon], color: "current", size: "sm") %>
-
- <% else %>
- <%= render DS::FilledIcon.new(
- variant: :text,
- hex_color: subcategory[:category_color],
- text: subcategory[:category_name],
- size: "md",
- rounded: true
- ) %>
- <% end %>
- <%= subcategory[:category_name] %>
- (<%= t("reports.transactions_breakdown.table.entries", count: subcategory[:count]) %>)
- |
- - - <%= Money.new(subcategory[:total], Current.family.currency).format %> - - | -- - <%= sub_percentage %>% - - | -