diff --git a/app/views/pages/dashboard/_balance_sheet.html.erb b/app/views/pages/dashboard/_balance_sheet.html.erb index 0f8710581..fafc75e2f 100644 --- a/app/views/pages/dashboard/_balance_sheet.html.erb +++ b/app/views/pages/dashboard/_balance_sheet.html.erb @@ -37,12 +37,12 @@
-
Name
-
-
+
Name
+
+

Weight

-
+

Value

@@ -55,34 +55,34 @@ <%= idx == classification_group.account_groups.size - 1 ? "rounded-b-lg" : "" %> "> -
+
<%= icon("chevron-right", class: "group-open:rotate-90") %>

<%= account_group.name %>

-
-
+
+
<%= render "pages/dashboard/group_weight", weight: account_group.weight, color: account_group.color %>
-
-

<%= format_money(account_group.total_money) %>

+
+

<%= format_money(account_group.total_money, precision: 0) %>

<% account_group.accounts.each_with_index do |account, idx| %> -
-
+
+
<%= render "accounts/logo", account: account, size: "sm", color: account_group.color %> <%= link_to account.name, account_path(account) %>
-
-
+
+
<% # Calculate weight as percentage of classification total classification_total = classification_group.total_money.amount @@ -91,8 +91,8 @@ <%= render "pages/dashboard/group_weight", weight: account_weight, color: account_group.color %>
-
-

<%= format_money(account.balance_money) %>

+
+

<%= format_money(account.balance_money, precision: 0) %>

diff --git a/app/views/pages/dashboard/_group_weight.html.erb b/app/views/pages/dashboard/_group_weight.html.erb index d3bf08e5c..4cf5e827d 100644 --- a/app/views/pages/dashboard/_group_weight.html.erb +++ b/app/views/pages/dashboard/_group_weight.html.erb @@ -4,9 +4,9 @@
- <% 10.times do |i| %> -
" style="background-color: <%= color %>;">
+ <% 5.times do |i| %> +
" style="background-color: <%= color %>;">
<% end %>
-

<%= number_to_percentage(effective_weight, precision: 2) %>

+

<%= number_to_percentage(effective_weight, precision: 0) %>