diff --git a/app/views/search/search.html.erb b/app/views/search/search.html.erb index 3e91baa9c..40ed4164f 100644 --- a/app/views/search/search.html.erb +++ b/app/views/search/search.html.erb @@ -25,11 +25,17 @@ <% unless @posts.nil? %> -
- <%= link_to 'Relevance', query_url(sort: 'relevance'), - class: "button is-outlined is-muted #{params[:sort] == 'relevance' || params[:sort].nil? ? 'is-active' : ''}" %> - <%= link_to 'Score', query_url(sort: 'score'), class: "button is-outlined is-muted #{params[:sort] == 'score' ? 'is-active' : ''}" %> - <%= link_to 'Age', query_url(sort: 'age'), class: "button is-outlined is-muted #{params[:sort] == 'age' ? 'is-active' : ''}" %> + <% post_count = @posts.count %> +
+
+ <%= short_number_to_human post_count, precision: 1, significant: false %> + <%= 'post'.pluralize(post_count) %> +
+
+ <%= link_to 'Relevance', query_url(sort: 'relevance'), class: "button is-outlined is-muted #{params[:sort] == 'relevance' || params[:sort].nil? ? 'is-active' : ''}" %> + <%= link_to 'Score', query_url(sort: 'score'), class: "button is-outlined is-muted #{params[:sort] == 'score' ? 'is-active' : ''}" %> + <%= link_to 'Age', query_url(sort: 'age'), class: "button is-outlined is-muted #{params[:sort] == 'age' ? 'is-active' : ''}" %> +