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

46 lines
1.7 KiB
Plaintext

<div class="item element">
<h3><i class="icons-book-2"></i>Module Name</h3>
<div class="detail w-a h-a">
<table class="table table-striped">
<thead>
<tr>
<th><%= t(:module) %></th>
<th class="span2"><%= t(:quantity) %></th>
</tr>
</thead>
</table>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table class="table table-striped">
<tbody>
<%
@plugins.each do |plugin|
if is_admin?
@data = plugin.app_name.classify.constantize.where(:create_user_id=>@user.id).count
else
@data = plugin.app_name.classify.constantize.where(:is_hidden=>false , :create_user_id=>@user.id).count
end
%>
<tr>
<td><%= plugin.name %></td>
<td class="span2"><%= @data %></td>
</tr>
<% end -%>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>