mirror of
https://github.com/we-promise/sure.git
synced 2026-04-11 00:04:47 +00:00
* Move accountable partials * Split accountables into separate view partials * Fix test * Add form to permitted partials * Fix failing system tests * Update new account modal views * New sync algorithm implementation * Update account system test assertions to match new behavior * Fix off by 1 date error * Revert new balance sync algorithm * Add missing account overviews
15 lines
349 B
Plaintext
15 lines
349 B
Plaintext
<%# locals: (account:, size: "md") %>
|
|
|
|
<% size_classes = {
|
|
"sm" => "w-6 h-6",
|
|
"md" => "w-9 h-9",
|
|
"lg" => "w-10 h-10",
|
|
"full" => "w-full h-full"
|
|
} %>
|
|
|
|
<% if account.logo.attached? %>
|
|
<%= image_tag account.logo, class: size_classes[size] %>
|
|
<% else %>
|
|
<%= circle_logo(account.name, hex: account.accountable.color, size: size) %>
|
|
<% end %>
|