%# Render the account's uploaded logo if present; otherwise fall back to the default inline SVG mark. Locals: account: (optional) an Account record class: CSS class string forwarded to / width: pixel width (default 37) height: pixel height (default 37) %> <% acc = local_assigns[:account] klass = local_assigns[:class] w = local_assigns.fetch(:width, '37') h = local_assigns.fetch(:height, '37') %> <% if acc&.logo&.attached? %> <%= image_tag rails_blob_path(acc.logo, disposition: 'inline'), class: klass, width: w, height: h, alt: acc.name, style: 'object-fit: contain;' %> <% else %> <%= render 'shared/logo', class: klass, width: w, height: h %> <% end %>