Orbit/app/views/admin/dashboards/_all_content.html.erb

29 lines
1013 B
Plaintext
Raw Permalink Normal View History

<div class="box-header">
<h2>
<i class="icons-book-2"></i>
<span class="break"></span>
<%= t(:all_content) %>
</h2>
</div>
<div class="box-content">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th><%= t(:module) %></th>
<th class="span1"><%= t(:quantity) %></th>
</tr>
</thead>
<tbody>
<% @module_app_contents.each do |module_app_content| %>
<tr>
<td><%= link_to t("dashboard.#{module_app_content[0]}"), get_link(module_app_content[0]) %></td>
<td><%= module_app_content[1] %></td>
</tr>
<% end %>
</tbody>
</table>
<ul class="pager">
<li><%= link_to_previous_page @module_app_contents, t(:previous), params: {controller: 'admin/dashboards', action: 'reload_all_content'}, remote: true %></li>
<li><%= link_to_next_page @module_app_contents, t(:next), params: {controller: 'admin/dashboards', action: 'reload_all_content'}, remote: true %></li>
</ul>
</div>