Skip to content

Commit

Permalink
Merge pull request #1220 from codidact/cellio/filter-score-hints
Browse files Browse the repository at this point in the history
added guidance on score values
  • Loading branch information
Oaphi authored Oct 20, 2023
2 parents 2c992d8 + 754f5c1 commit 00a2e0d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/views/search/_filters.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
<% end %>
<div class="form-group-horizontal">
<div class="form-group">
<%= label_tag :min_score, 'Min Score', class: "form-element" %>
<%= label_tag :min_score, 'Min Score (0-1)', class: "form-element" %>
<%= number_field_tag :min_score, @active_filter[:min_score],
min: 0, max: 1, step: 0.01, class: 'form-element form--filter',
data: { name: 'min_score' } %>
</div>
<div class="form-group">
<%= label_tag :max_score, 'Max Score', class: "form-element" %>
<%= label_tag :max_score, 'Max Score (0-1)', class: "form-element" %>
<%= number_field_tag :max_score, @active_filter[:max_score],
min: 0, max: 1, step: 0.01, class: 'form-element form--filter',
data: { name: 'max_score' } %>
Expand All @@ -58,6 +58,9 @@
data: { name: 'status' } %>
</div>
</div>
<div>
<a href="/help/scoring">How scores are computed</a>
</div>
<div class="form-group-horizontal">
<div class="form-group">
<%= label_tag :include_tags, 'Include Tags', class: "form-element" %>
Expand Down

0 comments on commit 00a2e0d

Please sign in to comment.