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,6 +1,7 @@
<div id="c-explore-posts">
<div id="a-missed-searches">
<h1>Missed Searches (past seven days)</h1>
<h1>Missed Searches</h1>
<p>Over the past seven days.</p>
<table class="striped" width="100%">
<thead>

View File

@@ -1,6 +1,6 @@
<div id="c-explore-posts">
<div id="a-searches">
<h1>Popular Searches: <%= @search_service.date %> (by <%= @search_service.scale %>)</h1>
<h1>Popular Searches - <%= @search_service.date %></h1>
<table class="striped" width="100%">
<thead>
@@ -19,11 +19,12 @@
</tbody>
</table>
<p style="margin-top: 2em;">
<%= link_to "< Previous", searches_explore_posts_path(:date => 1.day.ago(@date)) %>
<%= link_to "Next >", searches_explore_posts_path(:date => 1.day.since(@date)) %>
</p>
<div class="paginator">
<menu>
<li><%= link_to "< Previous", searches_explore_posts_path(:date => 1.day.ago(@date).to_date), :class => "arrow" %></li>
<li><%= link_to "Next >", searches_explore_posts_path(:date => 1.day.since(@date).to_date), :class => "arrow" %></li>
</menu>
</div>
</div>
</div>

View File

@@ -1,12 +1,17 @@
<div id="c-explore-posts">
<div id="a-popular">
<h1>Most Viewed: <%= @post_set.presenter.date %></h1>
<%= @post_set.presenter.nav_links(self) %>
<h1>Most Viewed - <%= @post_set.presenter.date %></h1>
<%= render "posts/partials/common/inline_blacklist" %>
<%= @post_set.presenter.post_previews_html(self) %>
<div class="paginator">
<menu>
<li><%= link_to "< Previous", viewed_explore_posts_path(:date => 1.day.ago(@date).to_date) %></li>
<li><%= link_to "Next >", viewed_explore_posts_path(:date => 1.day.since(@date).to_date) %></li>
</menu>
</div>
</div>
</div>