move explore links to sidebar, fix popular searches action

This commit is contained in:
r888888888
2017-11-13 11:14:09 -08:00
parent e739dc77d7
commit 36948bbf33
8 changed files with 45 additions and 22 deletions

View File

@@ -1,4 +1,8 @@
module PostsHelper
def discover_mode?
params[:tags] =~ /order:rank/ || params[:action] =~ /searches|viewed/
end
def next_page_url
current_page = (params[:page] || 1).to_i
dup_params = params.dup