2011-12-10 10:21:59 +00:00
|
|
|
<% content_for :secondary do %>
|
|
|
|
<%= render 'side_bar' %>
|
|
|
|
<% end %>
|
|
|
|
|
2011-12-18 02:07:42 +00:00
|
|
|
<div id="profile" class="clear">
|
2011-12-10 10:21:59 +00:00
|
|
|
|
|
|
|
<div id="person">
|
|
|
|
<% if @user.avatar? %>
|
|
|
|
<%= image_tag(@user.avatar.thumb.url) %>
|
|
|
|
<% else %>
|
|
|
|
<%= image_tag "person.png" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2011-12-18 02:07:42 +00:00
|
|
|
<% @infos.each do |a| %>
|
|
|
|
<div id="basic_block" class="attributes_block <%= @class %>">
|
|
|
|
<h2><%= a.i18n_variable[I18n.locale] %></h2>
|
2011-12-10 10:21:59 +00:00
|
|
|
<hr>
|
2011-12-18 02:07:42 +00:00
|
|
|
<%= render :partial => 'show_attribute', :locals => {:a => a} %>
|
2011-12-10 10:21:59 +00:00
|
|
|
</div>
|
|
|
|
<% end -%>
|
|
|
|
|
2011-12-18 02:07:42 +00:00
|
|
|
<div id="<%= @user.role.key %>_block" class="attributes_block <%= @class %>">
|
|
|
|
<h2><%= @user.role.i18n_variable[I18n.locale] %></h2>
|
2011-12-10 10:21:59 +00:00
|
|
|
<hr>
|
2011-12-18 02:07:42 +00:00
|
|
|
<%#= render :partial => 'show_attribute', :locals => {:a => active_role, :object => @user.get_role_from_key(active_role.key)} %>
|
2011-12-10 10:21:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="button_bar">
|
|
|
|
<%= link_to t(:edit), edit_admin_user_path(@user) %>
|
|
|
|
<%= link_back %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|