2010-03-04 09:11:18 +00:00
|
|
|
<% content_for :secondary do %>
|
|
|
|
<ul class="list">
|
2011-11-17 12:02:58 +00:00
|
|
|
<li><%= link_to t('admin.new_user'), new_admin_user_path, :class => 'button positive' %></li>
|
2010-03-04 09:11:18 +00:00
|
|
|
</ul>
|
|
|
|
<% end -%>
|
|
|
|
|
2011-11-17 12:02:58 +00:00
|
|
|
<h1><%= t('admin.user_panel') %></h1>
|
2010-03-04 09:11:18 +00:00
|
|
|
|
2011-04-13 10:19:51 +00:00
|
|
|
<%= image_tag(@user.avatar.thumb.url) rescue nil %>
|
|
|
|
|
|
|
|
<%= @user.email %>
|
|
|
|
|
2011-02-01 07:12:23 +00:00
|
|
|
<% if @user_info_models %>
|
2011-04-13 10:19:51 +00:00
|
|
|
<fieldset>
|
2011-11-17 12:02:58 +00:00
|
|
|
<legend><%= t('admin.info') %></legend>
|
2011-02-01 07:12:23 +00:00
|
|
|
<% @user_info_models.each do |am| %>
|
2011-11-12 09:54:45 +00:00
|
|
|
<%= render :partial => 'show_user_attribute', :locals => {:am => am, :object => @user.get_info_from_model_key(am.key)} %>
|
2011-02-01 07:12:23 +00:00
|
|
|
<% end -%>
|
2011-04-13 10:19:51 +00:00
|
|
|
</fieldset>
|
2011-02-01 07:12:23 +00:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if @user.active_roles.size > 0 %>
|
|
|
|
<fieldset>
|
2011-11-17 12:02:58 +00:00
|
|
|
<legend><%= t('admin.roles') %></legend>
|
2011-02-01 07:12:23 +00:00
|
|
|
<% @user.get_active_role_models.each do |am| %>
|
2011-11-12 09:54:45 +00:00
|
|
|
<%= render :partial => 'show_user_attribute', :locals => {:am => am, :object => @user.get_role_from_model_key(am.key)} %>
|
2011-02-01 07:12:23 +00:00
|
|
|
<% end -%>
|
|
|
|
</fieldset>
|
|
|
|
<% end %>
|