Skip to content

Commit

Permalink
Merge branch 'show-holding-pen-guess-scores' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Nov 3, 2023
2 parents a95d9fe + 5e4c2f4 commit a1d3dfb
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion app/views/admin_raw_email/_holding_pen.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,33 @@
<% if @guessed_info_requests.any? %>
<div class="row">
<div class="accordion span11" id="guessed-requests">
<p>Guessed request:</p>
<p>Guessed request: </p>

<% if @guessed_info_requests.one? %>
<p>
<small class="muted">
Responses with a single guess are only automatically redelivered if
the guess meets a confidence threshold. This guess did not meet that
threshold.
</small>
</p>
<% end %>

<% @guessed_info_requests.each do |guess| %>
<div class="accordion-group">
<div class="accordion-heading">
<a href="#info_request_<%= guess.info_request.id %>" data-toggle="collapse"><i class="icon-chevron-right"></i></a>
<%= both_links(guess.info_request) %>

<span class="badge">
ID:
<%= number_to_percentage(guess.id_score * 100, precision: 0) %>
</span>

<span class="badge">
Idhash:
<%= number_to_percentage(guess.idhash_score * 100, precision: 0) %>
</span>
</div>

<div class="accordion-body collapse" id="info_request_<%= guess.info_request.id %>">
Expand All @@ -47,6 +68,16 @@
<td><strong>url_title:</strong></td>
<td><%= guess.info_request.url_title %></td>
</tr>

<tr>
<td><strong>ID Guess Score:</strong></td>
<td><%= number_to_percentage(guess.id_score * 100, precision: 0) %></td>
</tr>

<tr>
<td><strong>Idhash Guess Score:</strong></td>
<td><%= number_to_percentage(guess.idhash_score * 100, precision: 0) %></td>
</tr>
</table>

<p>
Expand Down

0 comments on commit a1d3dfb

Please sign in to comment.