Orbit/app/views/admin/users/show.html.erb

34 lines
919 B
Plaintext
Raw Normal View History

<% content_for :secondary do %>
<%= render 'side_bar' %>
<% end %>
<div id="profile" class="clear">
<div id="person">
2011-12-20 06:35:28 +00:00
<% if @user.avatar? %>
<%= image_tag(@user.avatar.thumb.url) %>
<% else %>
2011-12-20 06:35:28 +00:00
<%= image_tag "person.png" %>
<% end %>
2011-12-20 06:35:28 +00:00
<label><span><%= @user.email %></span></label>
</div>
<% @infos.each do |a| %>
<div id="basic_block" class="attributes_block <%= @class %>">
<h2><%= a.i18n_variable[I18n.locale] %></h2>
<hr>
2011-12-20 06:35:28 +00:00
<%= render :partial => 'show_attribute', :object => a %>
</div>
<% end -%>
<div id="<%= @user.role.key %>_block" class="attributes_block <%= @class %>">
<h2><%= @user.role.i18n_variable[I18n.locale] %></h2>
<hr>
2011-12-20 06:35:28 +00:00
<%= render :partial => 'show_sub_role', :collection => @user.sub_roles %>
</div>
<div class="button_bar">
<%= link_to t(:edit), edit_admin_user_path(@user) %>
<%= link_back %>
</div>
</div>