From 4c57890c22a77f538f0a804b80a83708c6251ddb Mon Sep 17 00:00:00 2001 From: hatz Date: Wed, 21 May 2025 14:42:02 -0500 Subject: [PATCH] Add rulers between accounts and classification groups in balance sheet and account groups views. --- app/views/accounts/index/_account_groups.erb | 5 ++++- app/views/pages/dashboard/_balance_sheet.html.erb | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/views/accounts/index/_account_groups.erb b/app/views/accounts/index/_account_groups.erb index 6c1ba1ed..841e60c2 100644 --- a/app/views/accounts/index/_account_groups.erb +++ b/app/views/accounts/index/_account_groups.erb @@ -12,8 +12,11 @@ <% end %>
- <% accounts.each do |account| %> + <% accounts.each_with_index do |account, index| %> <%= render account %> + <% unless index == accounts.count - 1 %> + <%= render "shared/ruler" %> + <% end %> <% end %>
diff --git a/app/views/pages/dashboard/_balance_sheet.html.erb b/app/views/pages/dashboard/_balance_sheet.html.erb index 5837e886..7a71afe7 100644 --- a/app/views/pages/dashboard/_balance_sheet.html.erb +++ b/app/views/pages/dashboard/_balance_sheet.html.erb @@ -132,6 +132,9 @@ <% end %> + <% unless idx == classification_group.account_groups.size - 1 %> + <%= render "shared/ruler", classes: "mx-4 group-ruler" %> + <% end %> <% end %> @@ -150,3 +153,10 @@ <% end %> + +<%# Custom style for hiding ruler when details are open %> +