added popular exploration, added order:rank
This commit is contained in:
19
app/views/explore/posts/_date_explore.html.erb
Normal file
19
app/views/explore/posts/_date_explore.html.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
<aside id="sidebar">
|
||||
<ul>
|
||||
<li>
|
||||
<%= link_to "«".html_safe, popular_explore_posts_path(:date => post_set.presenter.prev_day, :scale => "day") %>
|
||||
<%= link_to "»".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_day, :scale => "day") %>
|
||||
<%= link_to "Day", popular_explore_posts_path(:date => post_set.presenter.date, :scale => "day") %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "«".html_safe, popular_explore_posts_path(:date => post_set.presenter.prev_week, :scale => "week") %>
|
||||
<%= link_to "»".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_week, :scale => "week") %>
|
||||
<%= link_to "Week", popular_explore_posts_path(:date => post_set.presenter.date, :scale => "week") %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "«".html_safe, popular_explore_posts_path(:date => post_set.presenter.prev_month, :scale => "month") %>
|
||||
<%= link_to "»".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_month, :scale => "month") %>
|
||||
<%= link_to "Month", popular_explore_posts_path(:date => post_set.presenter.date, :scale => "month") %>
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
14
app/views/explore/posts/popular.html.erb
Normal file
14
app/views/explore/posts/popular.html.erb
Normal file
@@ -0,0 +1,14 @@
|
||||
<div id="c-explore-posts">
|
||||
<div id="a-index">
|
||||
<h1>Explore: <%= @post_set.min_date %> – <%= @post_set.max_date %></h1>
|
||||
|
||||
<%= render "date_explore", :post_set => @post_set %>
|
||||
|
||||
<section id="content">
|
||||
<%= @post_set.presenter.post_previews_html(self) %>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "posts/partials/common/secondary_links" %>
|
||||
|
||||
Reference in New Issue
Block a user