The personal finance app for everyone (by everyone)
Ruby
<%# locals: (series:) %>
<%# The face of a bill: its merchant's logo, else initials. One recipe for the
overview rows and the All bills list, and the transaction row's: round, 36px,
a hairline around a logo so a white one still has an edge. %>
<% if series.merchant&.logo_url.present? %>
<%= image_tag Setting.transform_brand_fetch_url(series.merchant.logo_url),
class: "w-9 h-9 rounded-full shrink-0 border border-secondary",
loading: "lazy" %>
<% else %>
<%= render DS::FilledIcon.new(
variant: :text,
text: series.display_name,
size: "lg",
rounded: true
) %>
<% end %>