<% if @user.avatar? %> <%= image_tag(@user.avatar.thumb.url) %> <% else %> <%= image_tag "person.png" %> <% end %> <%= link_to t(:edit), edit_admin_user_path(@user), :id => 'edit' %>
<% @user_info_models.each do |am| %>

<%= am.i18n_variable[I18n.locale] %>


<%= render :partial => 'show_user_attribute', :locals => {:am => am, :object => @user.get_info_from_model_key(am.key)} %>
<% end -%>
<% active_role = UserRoleModel.get_role_model_from_key(@user.active_role) %>

<%= active_role.i18n_variable[I18n.locale] %>


<%= render :partial => 'show_user_attribute', :locals => {:am => active_role, :object => @user.get_role_from_model_key(active_role.key)} %>