Skip to content

Commit

Permalink
HELIO-3912 Simple Blacklight search stats reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaj committed May 28, 2021
1 parent 39c61ca commit 85457d3
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions app/views/fulcrum/_reports.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,42 @@
<li><%= link_to "Handle Deposits", handle_deposits_path %></li>
<li><%= link_to "Tombstones", tombstones_path %></li>
</ul>

<div class="row">
<div class="col">
<table class="table table-striped">
<tr>
<td>
Blacklight Searches in the last 30 days
</td>
<td>
<%= Search.count %>
</td>
</tr>
<tr>
<td>
EPUB Searches in the last 30 days
</td>
<td>
<%= EpubSearchLog.where("created_at > '#{30.days.ago}'").count%>
</td>
</tr>
<tr>
<td>
Blacklight Searches today
</td>
<td>
<%= Search.where("created_at > '#{1.days.ago}'").count %>
</td>
</tr>
<tr>
<td>
EPUB Searches today
</td>
<td>
<%= EpubSearchLog.where("created_at > '#{1.days.ago}'").count %>
</td>
</tr>
<table>
</div>
</div>

0 comments on commit 85457d3

Please sign in to comment.