Hash :
1a22640b
Author :
Thomas de Grivel
Date :
2023-01-02T04:08:20
<% right = try do
if @right, do: " #{@right}", else: nil
rescue
_ -> nil
end %>
<% 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 %><%= right %><% end %>
<% else %>
<img src={Exgravatar.gravatar_url(@email, s: @size)} alt={@title} title={@title} class={@class} />
<% end %>