From c2f487067e8ad8a02e06ca2c9e1818356d084789 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 20 Oct 2015 19:09:09 -0700 Subject: [PATCH] include monthly view on popular search explorer --- app/views/explore/posts/searches.html.erb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/explore/posts/searches.html.erb b/app/views/explore/posts/searches.html.erb index abb2d6a0b..f41cdb13a 100644 --- a/app/views/explore/posts/searches.html.erb +++ b/app/views/explore/posts/searches.html.erb @@ -23,15 +23,18 @@ View by <%= link_to "day", searches_explore_posts_path(:date => params[:date], :scale => "day") %> | <%= link_to "week", searches_explore_posts_path(:date => params[:date], :scale => "week") %> | + <%= link_to "month", searches_explore_posts_path(:date => params[:date], :scale => "month") %> | <%= link_to "year", searches_explore_posts_path(:date => params[:date], :scale => "year") %>. Back one <%= link_to "day", searches_explore_posts_path(:date => 1.day.ago(@date), :scale => params[:scale]) %> | - <%= link_to "week", searches_explore_posts_path(:date => 1.week.ago(@date), :scale => params[:scale]) %>. + <%= link_to "week", searches_explore_posts_path(:date => 1.week.ago(@date), :scale => params[:scale]) %> | + <%= link_to "month", searches_explore_posts_path(:date => 1.month.ago(@date), :scale => params[:scale]) %>. Forward one <%= link_to "day", searches_explore_posts_path(:date => 1.day.since(@date), :scale => params[:scale]) %> | - <%= link_to "week", searches_explore_posts_path(:date => 1.week.since(@date), :scale => params[:scale]) %>. + <%= link_to "week", searches_explore_posts_path(:date => 1.week.since(@date), :scale => params[:scale]) %> | + <%= link_to "month", searches_explore_posts_path(:date => 1.month.since(@date), :scale => params[:scale]) %>.