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

34 lines
929 B
Plaintext
Raw Normal View History

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