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

62 lines
2.3 KiB
Plaintext
Raw Normal View History

2012-10-15 07:30:48 +00:00
<% content_for :side_bar do %>
2013-08-09 07:07:05 +00:00
<%= render :partial => 'admin/users_new_interface/side_bar' %>
2012-10-15 07:30:48 +00:00
<% end %>
2012-09-17 04:06:21 +00:00
<%= render :partial => "js_and_css"%>
2013-08-09 07:07:05 +00:00
<% content_for :page_specific_javascript do -%>
<%= javascript_include_tag "lib/jquery-scrolltofixed-min.js" %>
<%= javascript_include_tag "lib/member/member.js" %>
<%= javascript_include_tag "lib/footable-0.1.js" %>
<% end -%>
2013-08-09 07:07:05 +00:00
<div id="profile" class="clearfix">
2012-09-13 10:39:27 +00:00
2013-08-09 07:07:05 +00:00
<div id="basic-info" class="clearfix">
<div class="member-avatar gender-men">
<%= show_avatar(@user) %>
2012-09-13 10:39:27 +00:00
</div>
2013-08-09 07:07:05 +00:00
<div class="basic-profile">
<h4><%= @user.name%></h4>
<small class="muted"><%= @user.email %></small>
<%= link_to("<i class='icon-edit'></i>#{t(:edit)}".html_safe,edit_admin_users_new_interface_path(@user),:class=>"btn btn-mini" ) if is_admin?%>
<%= link_to("<i class='icons-cycle'></i>#{t("users.change_passwd")}".html_safe,admin_users_new_interface_edit_passwd_path(@user),:class=>"btn btn-mini" ) if is_admin?%>
</div>
<div id="member-roles" class="nano">
<div class="content">
<%= render :partial=> "user_role",:locals=>{:role_class=>"basic",:i18n=>"profile",:items=>@profile_data} %>
<%= render :partial=> "show_roles",:collection=>@user.roles %>
</div>
2012-09-11 02:52:27 +00:00
</div>
2013-08-09 07:07:05 +00:00
</div>
<div id="member-module">
<div id="module-navbar">
<div class="navbar">
<div class="navbar-inner">
<ul class="nav">
<%= content_tag :li, :class=>(params[:show_plugin_profile].nil? ? "active" : nil) do %>
<%= link_to t(:all_plugin_summary)%>
<% end -%>
<% @plugins.each do |plugin| %>
<%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin.name ? "active" : nil) do %>
<%= link_to plugin.name, :show_plugin_profile => plugin.name %>
<% end -%>
<% end -%>
</ul>
2012-09-11 02:52:27 +00:00
</div>
2013-08-09 07:07:05 +00:00
</div>
</div>
2013-08-09 07:07:05 +00:00
<div id="module-content">
<%=render :partial => @right_partial %>
2012-09-11 02:52:27 +00:00
</div>
2013-08-09 07:07:05 +00:00
</div>
2012-09-13 10:39:27 +00:00
</div>