diff --git a/app/views/reports/_investment_performance.html.erb b/app/views/reports/_investment_performance.html.erb index b81a0a544..5431ae085 100644 --- a/app/views/reports/_investment_performance.html.erb +++ b/app/views/reports/_investment_performance.html.erb @@ -2,14 +2,12 @@ <% if investment_metrics[:has_investments] %>
@@ -19,8 +17,8 @@ <%# Total Return Card %>
@@ -46,8 +44,8 @@ <%# Period Withdrawals Card %>
@@ -59,57 +57,50 @@ <%# Top Holdings Table %> <% if investment_metrics[:top_holdings].any? %>
| <%= t("reports.investment_performance.holding") %> | -<%= t("reports.investment_performance.weight") %> | -<%= t("reports.investment_performance.value") %> | -<%= t("reports.investment_performance.return") %> | -
|---|---|---|---|
|
-
- <% if holding.security.brandfetch_icon_url.present? %>
-
- <%= holding.ticker[0..1] %>
-
- <% end %>
-
-
+ <%= holding.ticker %> -<%= truncate(holding.name, length: 25) %> -
+
+
+ <%= t("reports.investment_performance.holding") %>
+ <%= t("reports.investment_performance.weight") %>
+ <%= t("reports.investment_performance.value") %>
+ <%= t("reports.investment_performance.return") %>
+
+ <% investment_metrics[:top_holdings].each_with_index do |holding, idx| %>
+
+
+ <% if holding.security.brandfetch_icon_url.present? %>
+
+ <%= holding.ticker[0..1] %>
- |
- - <%= number_to_percentage(holding.weight || 0, precision: 1) %> - | -- <%= format_money(holding.amount_money) %> - | -- <% if holding.trend %> - - <%= holding.trend.percent_formatted %> - - <% else %> - <%= t("reports.investment_performance.no_data") %> - <% end %> - | -