<h3>Avatar</h3>
<div class="box tabular avatar-edit">

  <% if Setting.gravatar_enabled == '1' || Setting.gravatar_enabled.try(:to_boolean) %>
    <div class="nodata">
      <%= l(:text_avatar_not_available_because_gravatar) %>
    </div>
  <% else %>
    <%= avatar(user, :no_link => true, :style => :medium) %>
    <div style="margin-left: 80px;">
      <div>
        <%= file_field_tag 'user[easy_avatar]' %>
      </div>
      <div><%= link_to(l(:button_delete_avatar), easy_avatar_path(:style => :medium, :entity_id => user.id, :entity_type => user.class.name), :class => 'icon icon-del', :remote => true, :method => :delete, :data => {:confirm => l(:are_you_sure_delete_avatar)}) %></div>
    </div>
    <div class="clear"></div>
  <% end -%>
</div>
