app/views/searchjoy/searches/overview.html.erb in searchjoy-0.4.3 vs app/views/searchjoy/searches/overview.html.erb in searchjoy-0.5.0
- old
+ new
@@ -4,11 +4,11 @@
<div class="col-1-2">
<table>
<thead>
<tr>
<th>Top Searches</th>
- <th class="num"><%= link_to "View all", searches_path(search_type: @search_type) %></th>
+ <th class="num"><%= link_to "View all", searches_path(search_type: @search_type, **@time_params) %></th>
</tr>
</thead>
<tbody>
<% @top_searches.each do |row| %>
<tr>
@@ -22,11 +22,11 @@
<div class="col-1-2">
<table>
<thead>
<tr>
<th>Low Conversions</th>
- <th class="num"><%= link_to "View all", searches_path(search_type: @search_type, sort: "conversion_rate") %></th>
+ <th class="num"><%= 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>
@@ -39,10 +39,10 @@
</div>
</div>
<h2>Conversion Rate</h2>
-<%= line_chart @conversion_rate_by_week %>
+<%= line_chart @conversion_rate_by_week, suffix: "%" %>
<h2>Volume</h2>
<%= line_chart [{name: "Searches", data: @searches_by_week}, {name: "Conversions", data: @conversions_by_week}] %>