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.
2011-12-10 10:21:59 +00:00
|
|
|
<% content_for :secondary do %>
|
|
|
|
<%= render 'side_bar' %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div id="porfile">
|
|
|
|
|
|
|
|
<div id="person">
|
|
|
|
<% if @user.avatar? %>
|
|
|
|
<%= image_tag(@user.avatar.thumb.url) %>
|
|
|
|
<% else %>
|
|
|
|
<%= image_tag "person.png" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% @user_info_models.each do |am| %>
|
|
|
|
<div id="basic_block" class="roles_block <%= @class %>">
|
|
|
|
<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 -%>
|
|
|
|
|
|
|
|
<div id="<%= @user.active_role %>_block" class="roles_block <%= @class %>">
|
|
|
|
<% 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 class="button_bar">
|
|
|
|
<%= link_to t(:edit), edit_admin_user_path(@user) %>
|
|
|
|
<%= link_back %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|