cartodb/app/views/shared/_logo.html.erb
2020-06-15 10:58:47 +08:00

12 lines
479 B
Plaintext

<% 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>