remove week scaling for popular searches
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
class IntroPresenter
|
class IntroPresenter
|
||||||
def each
|
def each
|
||||||
PopularSearchService.new(Date.today, "week").each_search(20) do |query, count|
|
PopularSearchService.new(Date.today, "month").each_search(20) do |query, count|
|
||||||
yield(query, PostSets::Intro.new(query))
|
yield(query, PostSets::Intro.new(query))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -22,17 +22,14 @@
|
|||||||
<p style="margin-top: 2em;">
|
<p style="margin-top: 2em;">
|
||||||
View by
|
View by
|
||||||
<%= link_to "day", searches_explore_posts_path(:date => params[:date], :scale => "day") %> |
|
<%= 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 "month", searches_explore_posts_path(:date => params[:date], :scale => "month") %>.
|
||||||
|
|
||||||
Back one
|
Back one
|
||||||
<%= link_to "day", searches_explore_posts_path(:date => 1.day.ago(@date), :scale => params[:scale]) %> |
|
<%= 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 "month", searches_explore_posts_path(:date => 1.month.ago(@date), :scale => params[:scale]) %>.
|
<%= link_to "month", searches_explore_posts_path(:date => 1.month.ago(@date), :scale => params[:scale]) %>.
|
||||||
|
|
||||||
Forward one
|
Forward one
|
||||||
<%= link_to "day", searches_explore_posts_path(:date => 1.day.since(@date), :scale => params[:scale]) %> |
|
<%= 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 "month", searches_explore_posts_path(:date => 1.month.since(@date), :scale => params[:scale]) %>.
|
<%= link_to "month", searches_explore_posts_path(:date => 1.month.since(@date), :scale => params[:scale]) %>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
$.post("<%= Danbooru.config.report_server %>/hits", {
|
$.post("<%= Danbooru.config.report_server %>/hits", {
|
||||||
key: "<%= key %>",
|
key: "<%= key %>",
|
||||||
value: "<%= value %>",
|
value: "<%= value %>",
|
||||||
|
uid: <%= CurrentUser.user.id.to_s %>,
|
||||||
sig: "<%= sig %>"
|
sig: "<%= sig %>"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user