cartodb/app/views/carto/oauth_provider/_avatars.html.erb

12 lines
573 B
Plaintext
Raw Normal View History

2020-06-15 10:58:47 +08:00
<div class='oauth-form__avatars'>
<% if @oauth_app %>
<img class='oauth-form__avatar-image' src="<%= @oauth_app.icon_url %>" alt="<%= @oauth_app.name %>" />
<% else %>
<img class='oauth-form__avatar-image' src="<%= image_path "oauth_provider/unknown_app_avatar.svg" %>" alt="Unknown app avatar">
<% end %>
<% if current_viewer %>
<img src="<%= image_path "oauth_provider/arrows_connect.svg" %>" alt="Arrows connect">
<img class='oauth-form__avatar-image' src="<%= current_viewer.avatar %>" alt="<%= current_viewer.username %>" />
<% end %>
</div>