orbit-basic/app/views/admin/users/show.html.erb

30 lines
897 B
Plaintext

<% content_for :secondary do %>
<ul class="list">
<li><%= link_to t('admin.new_user'), new_admin_user_path, :class => 'button positive' %></li>
</ul>
<% end -%>
<h1><%= t('admin.user_panel') %></h1>
<%= image_tag(@user.avatar.thumb.url) rescue nil %>
<%= @user.email %>
<% if @user_info_models %>
<fieldset>
<legend><%= t('admin.info') %></legend>
<% @user_info_models.each do |am| %>
<%= render :partial => 'show_user_attribute', :locals => {:am => am, :object => @user.get_info_from_model_key(am.key)} %>
<% end -%>
</fieldset>
<% end %>
<% if @user.active_roles.size > 0 %>
<fieldset>
<legend><%= t('admin.roles') %></legend>
<% @user.get_active_role_models.each do |am| %>
<%= render :partial => 'show_user_attribute', :locals => {:am => am, :object => @user.get_role_from_model_key(am.key)} %>
<% end -%>
</fieldset>
<% end %>