mirror of
https://github.com/we-promise/sure.git
synced 2026-04-17 11:04:14 +00:00
* fix: changed bg-surface-hover color for dark theme * fix: added hover state to table entries on Tags and Accounts lists * fix: added bottom margin on tag creation element preview * fix: added overflow property to accounts table wrapper
24 lines
934 B
Plaintext
24 lines
934 B
Plaintext
<%# locals: (accounts:) %>
|
|
|
|
<% accounts.group_by(&:accountable_type).sort_by { |group, _| group }.each do |group, accounts| %>
|
|
<div class="bg-container-inset p-1 rounded-xl">
|
|
<div class="flex items-center px-4 py-2 text-xs font-medium text-secondary">
|
|
<p><%= Accountable.from_type(group).display_name %></p>
|
|
<span class="text-subdued mx-2">·</span>
|
|
<p><%= accounts.count %></p>
|
|
|
|
<% unless accounts.any?(&:syncing?) %>
|
|
<p class="ml-auto"><%= totals_by_currency(collection: accounts, money_method: :balance_money) %></p>
|
|
<% end %>
|
|
</div>
|
|
<div class="bg-container rounded-lg shadow-border-xs overflow-hidden">
|
|
<% accounts.each_with_index do |account, index| %>
|
|
<%= render "accounts/account", account: account %>
|
|
<% unless index == accounts.count - 1 %>
|
|
<%= render "shared/ruler" %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|