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

41 lines
1.3 KiB
Plaintext
Raw Normal View History

2011-11-18 08:43:14 +00:00
<% content_for :body_id do %>user_list<% end -%>
<% content_for :secondary do %>
2011-11-18 08:43:14 +00:00
<div class="member_setup">
<h1>Member Setup</h1>
<ul class="list">
<li class="set_1"><%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %></li>
<li class="set_2"><%= link_to content_tag(:span, t('admin.list_user_roles')), admin_user_role_models_path %></li>
</ul>
</div>
<% end -%>
2011-11-18 08:43:14 +00:00
<div id="porfile">
<div id="person">
<% 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' %>
</div>
<% @user_info_models.each do |am| %>
<div id="basic_block" class="roles_block">
<h2><%= am.i18n_variable[I18n.locale] %></h2>
<hr>
<%= render :partial => 'show_user_attribute', :locals => {:am => am, :object => @user.get_info_from_model_key(am.key)} %>
</div>
<% end -%>
2011-11-18 08:43:14 +00:00
<div id="<%= @user.active_role %>_block" class="roles_block">
<% active_role = UserRoleModel.get_role_model_from_key(@user.active_role) %>
<h2><%= active_role.i18n_variable[I18n.locale] %></h2>
<hr>
<%= render :partial => 'show_user_attribute', :locals => {:am => active_role, :object => @user.get_role_from_model_key(active_role.key)} %>
</div>
</div>
2011-02-01 07:12:23 +00:00