Sha256: 06e62014cd045f31adace2bffe605491a56a8bfd6225bbe36865f026c3923c4c
Contents?: true
Size: 1.43 KB
Versions: 3
Compression:
Stored size: 1.43 KB
Contents
<h1><%= @search_type %> Overview</h1> <div class="grid"> <div class="col-1-2"> <table> <thead> <tr> <th>Top Searches</th> <th class="num width-20"><%= link_to "View all", searches_path(search_type: @search_type, **@time_params) %></th> </tr> </thead> <tbody> <% @top_searches.each do |row| %> <tr> <td><%= row["normalized_query"] %></td> <td class="num"><%= row["searches_count"] %></td> </tr> <% end %> </tbody> </table> </div> <div class="col-1-2"> <table> <thead> <tr> <th>Low Conversion Rate</th> <th class="num width-20"><%= link_to "View all", searches_path(search_type: @search_type, sort: "conversion_rate", **@time_params) %></th> </tr> </thead> <tbody> <% @bad_conversion_rate.each do |row| %> <tr> <td><%= row["normalized_query"] %></td> <td class="num"><%= number_to_percentage row["conversion_rate"], precision: 0 %></td> </tr> <% end %> </tbody> </table> </div> </div> <% chart_html = '<div id="%{id}" class="chart">%{loading}</div>' %> <h2>Conversion Rate</h2> <%= line_chart @conversion_rate_by_week, suffix: "%", html: chart_html %> <h2>Volume</h2> <%= line_chart [{name: "Searches", data: @searches_by_week}, {name: "Converted", data: @converted_by_week}], html: chart_html %>
Version data entries
3 entries across 3 versions & 1 rubygems