cartodb-4.42/app/views/shared/_logo.html.erb

12 lines
479 B
Plaintext
Raw Normal View History

2024-04-06 13:25:13 +08:00
<% organization = local_assigns[:organization] %>
<picture class="Navbar-brand">
<% if organization.present? && organization.avatar_url.present? %>
<img src="<%= organization.avatar_url %>" alt="<%= organization.name %> organization">
<% else %>
<% if organization.present? %>
<%= image_tag("layout/carto-logo-darkblue.svg", :alt => "CARTO") %>
<% else %>
<%= image_tag("layout/carto-logo.svg", :alt => "CARTO") %>
<% end %>
<% end %>
</picture>