Sha256: 6ffaf0a9a156d174f5842dc446af042c1facc70878b1f38e9b98846aa2a017a2
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
<h1> <%= @search_type %> Searches <small>Top <%= @limit %></small> </h1> <table> <thead> <tr> <th>Query</th> <th class="num" style="width: 20%;"><%= link_to "Searches", searches_path(search_type: params[:search_type], **@time_params), class: ("active" if params[:sort] != "conversion_rate") %></th> <th class="num" style="width: 20%;">Conversions</th> <th class="num" style="width: 20%;"><%= link_to "%", searches_path(search_type: params[:search_type], sort: "conversion_rate", **@time_params), class: ("active" if params[:sort] == "conversion_rate") %></th> <th class="num" style="width: 20%;">Avg Results</th> </tr> </thead> <tbody> <% @searches.each do |search| %> <tr> <td><%= search["normalized_query"] %></td> <td class="num"><%= search["searches_count"] %></td> <td class="num"><%= search["conversions_count"] %></td> <td class="num"><%= number_to_percentage search["conversion_rate"].to_f, precision: 0 %></td> <td class="num"><%= search["avg_results_count"].to_f.round %></td> </tr> <% end %> </tbody> </table>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
searchjoy-1.0.0 | app/views/searchjoy/searches/index.html.erb |
searchjoy-0.5.1 | app/views/searchjoy/searches/index.html.erb |
searchjoy-0.5.0 | app/views/searchjoy/searches/index.html.erb |