orbit4-5/app/views/admin/dashboards/_most_visited.html.erb

27 lines
791 B
Plaintext

<div class="box-header">
<h2>
<i class="icons-trophy"></i>
<span class="break"></span>
<%= t(:most_visited_page) %>
</h2>
</div>
<div class="box-content">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th class="span7"><%= t(:title) %></th>
<th class="span2"><%= t(:module) %></th>
<th class="span3"><%= t(:hits) %></th>
</tr>
</thead>
<tbody>
<% @most_visited.each do |object| %>
<tr>
<td><%= (object[0].title rescue nil) || (object[0].page.title rescue nil) || (object[0].name rescue nil) %></td>
<td><%= t("dashboard.#{object[0].class.to_s.underscore}") %></td>
<td><%= object[1] %></td>
</tr>
<% end %>
</tbody>
</table>
</div>