%= content_tag(:div, :id=>dom_id(user), :class=>"dinamic-bl #{user.state}") do %>
<% if can? :update, user, :context => :manage %>
<%= link_to manage_icon("edit"), edit_manage_user_path(:id=>user.id), :class=>"icons" %>
<% end %>
<% if can? :delete, user, :context => :manage %>
<%= link_to manage_icon("delete"), manage_user_path(:id=>user.id),
:method=>:delete, :confirm=>t("manage.confirm_delete"), :class=>"icons" %>
<% end %>
<%= link_to user.name, edit_manage_user_path(:id=>user.id), :class=>"title" %>
<%= t('manage.users.email') %>: |
<%= mail_to user.email %> |
<%= t('manage.users.last_login_ip') %>: |
<%= user.last_sign_in_ip %> |
<%= t('manage.users.activated_at') %>: |
<%= I18n.l(user.confirmed_at, :format=>"%d.%m.%Y %H:%M") if user.confirmed? %> |
<% user.events_for_current_state.each do |event| %>
<%= link_to content_tag(:span, t("manage.user.events.#{event}")), "/manage/users/#{user.id}/#{event}",
:method => :post, :class => event %>
<% end %>
<%= manage_user_avatar_tag(user, :type=>:thumb) %>
<%= raw I18n.l(user.created_at, :format=>"%d/%m%Y") %>
<% end %>