mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
791 B
22 lines
791 B
<%# 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 <img>/<svg>
|
|
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 %>
|