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

79 lines
3.2 KiB
Plaintext
Raw Permalink 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/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>
2013-08-30 08:47:44 +00:00
<div class="btn-group">
<%= 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? and current_user.id != @user.id %>
2013-10-18 11:02:14 +00:00
<%= link_to("<i class='icons-lock-open'></i> #{t("users.setting_privilege")}".html_safe,admin_users_new_interface_edit_privilege_path(@user),:class=>"btn btn-mini" ) if is_admin? and current_user.id != @user.id %>
2013-08-30 08:47:44 +00:00
</div>
2013-08-09 07:07:05 +00:00
</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">
2013-08-30 08:47:44 +00:00
<div id="module-navbar">
<div class="navbar">
<div class="navbar-inner">
<span class="brand">
<%= @plugin_app_name.nil? ? t(:all_plugin_summary) : @plugin_app_name %>
2013-08-30 08:47:44 +00:00
</span>
<ul class="nav pull-right">
<li class="divider-vertical"></li>
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">Module List <b class="caret"></b></a>
<ul class="dropdown-menu">
<% @plugin_shows.each do |plugin| %>
<%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin["app_name"] ? "active" : nil) do %>
<%= link_to plugin["name"], :show_plugin_profile => plugin["app_name"] %>
2013-08-30 08:47:44 +00:00
<% end -%>
<% end -%>
</ul>
</li>
</ul>
</div>
</div>
2012-09-11 02:52:27 +00:00
</div>
2013-08-30 08:47:44 +00:00
<div id="module-content">
<div class="nano">
<div class="content">
<%=render :partial => @right_partial %>
</div>
</div>
</div>
2012-09-11 02:52:27 +00:00
</div>
2013-08-30 08:47:44 +00:00
2012-09-13 10:39:27 +00:00
</div>
2013-08-30 08:47:44 +00:00