2014-05-15 11:32:51 +00:00
|
|
|
<div class="box-header">
|
|
|
|
<h2>
|
|
|
|
<i class="icons-cycle"></i>
|
|
|
|
<span class="break"></span>
|
|
|
|
<%= t(:recent_update) %>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div class="box-content">
|
|
|
|
<table class="table table-bordered table-striped table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><%= t(:title) %></th>
|
|
|
|
<th class="span2"><%= t(:module) %></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @recent_updated.each do |object| %>
|
|
|
|
<tr>
|
2014-05-20 02:31:44 +00:00
|
|
|
<td><%= (object[0].title rescue nil) || (object[0].page.name rescue nil) || (object[0].name rescue nil) %></td>
|
2014-05-15 11:32:51 +00:00
|
|
|
<td><%= t("dashboard.#{object[0].class.to_s.underscore}") %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<ul class="pager">
|
|
|
|
<li><%= link_to_previous_page @recent_updated, t(:previous), params: {controller: 'admin/dashboards', action: 'reload_recent_update'}, remote: true %></li>
|
|
|
|
<li><%= link_to_next_page @recent_updated, t(:next), params: {controller: 'admin/dashboards', action: 'reload_recent_update'}, remote: true %></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|