Files
danbooru/app/views/explore/posts/popular.html.erb
evazion 6a984de3d5 views: refactor page titles.
Refactor `page_title` helper to automatically include site name.
2020-01-25 01:52:18 -06:00

33 lines
999 B
Plaintext

<% page_title "Popular Posts" %>
<%= 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" %>
<%= @date.strftime("Week of %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>
<%= render "posts/partials/common/inline_blacklist" %>
<%= post_previews_html(@posts) %>
</div>
</div>
<% content_for(:html_header) do %>
<meta name="description" content="The most popular posts per <%= @scale %>">
<% end %>