Add curated posts page.
Add a curated posts page at /explore/posts/curated. Curated posts are the most favorited posts by contributor-level users (users with unlimited upload permissions). Also add an order:curated tag using for use in regular searches.
This commit is contained in:
@@ -1,28 +1,13 @@
|
||||
<% page_title "Popular Posts" %>
|
||||
<% meta_description "The most popular posts per #{@scale}" %>
|
||||
<% meta_description "The most popular posts of #{date_range_description(@date, @scale, @min_date, @max_date)}" %>
|
||||
|
||||
<%= render "posts/partials/common/secondary_links" %>
|
||||
|
||||
<div id="c-explore-posts">
|
||||
<div id="a-popular">
|
||||
<h1>
|
||||
Popular:
|
||||
|
||||
<% if @scale == "day" %>
|
||||
<%= @date.strftime("%B %d, %Y") %>
|
||||
<% elsif @scale == "week" %>
|
||||
<%= @min_date.strftime("%B %d, %Y") %> - <%= @max_date.strftime("%B %d, %Y") %>
|
||||
<% elsif @scale == "month" %>
|
||||
<%= @date.strftime("%B %Y") %>
|
||||
<% end %>
|
||||
</h1>
|
||||
|
||||
<p id="popular-nav-links">
|
||||
<%= render "explore/posts/nav_links", date: @date, selected_scale: @scale, scale: "day" %>
|
||||
<%= render "explore/posts/nav_links", date: @date, selected_scale: @scale, scale: "week" %>
|
||||
<%= render "explore/posts/nav_links", date: @date, selected_scale: @scale, scale: "month" %>
|
||||
</p>
|
||||
<h1>Popular: <%= date_range_description(@date, @scale, @min_date, @max_date) %></h1>
|
||||
|
||||
<%= render "explore/posts/nav_links", path: :popular_explore_posts_path, date: @date, scale: @scale %>
|
||||
<%= render "posts/partials/common/inline_blacklist" %>
|
||||
|
||||
<%= post_previews_html(@posts) %>
|
||||
|
||||
Reference in New Issue
Block a user