This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/admin/users/show.html.erb

30 lines
897 B
Plaintext
Raw Normal View History

<% 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>
</ul>
<% end -%>
2011-11-17 12:02:58 +00:00
<h1><%= t('admin.user_panel') %></h1>
<%= image_tag(@user.avatar.thumb.url) rescue nil %>
<%= @user.email %>
2011-02-01 07:12:23 +00:00
<% if @user_info_models %>
<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 -%>
</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 %>