Hash :
a240042c
Author :
Thomas de Grivel
Date :
2022-01-24T15:22:03
<% user = UserManager.get_user_by_email(@email) %>
<%= if user do %>
<% avatar_path = Avatar.path(user, @size) %>
<%= link to: Routes.slug_path(@conn, :show, User.login(user)) do %><%= if File.exists?(avatar_path) do %><%= img_tag(Routes.user_path(@conn, :avatar, User.login(user), @size), alt: @title, title: @title, class: @class) %><% else %><img src={Exgravatar.gravatar_url(@email, s: @size)} alt={@title} title={@title} class={@class} /><% end %><% end %>
<% else %>
<img src={Exgravatar.gravatar_url(@email, s: @size)} alt={@title} title={@title} class={@class} />
<% end %>