<% provide :title, t('.title', :year => @day.year, :month => @day.month, :day => @day.day) %>
<div id="post-popular">
  <h3>
    <%= link_to '«', :controller => "post", :action => "popular_by_day", :year => @day.yesterday.year, :month => @day.yesterday.month, :day => @day.yesterday.day %>
    <%= @day.strftime("%B %d, %Y") %>
    <%= link_to_unless @day >= Time.now, '»', :controller => "post", :action => "popular_by_day", :year => @day.tomorrow.year, :month => @day.tomorrow.month, :day => @day.tomorrow.day %>
  </h3>

  <%= render :partial => "posts", :locals => {:posts => @posts} %>
</div>

<% content_for :subnavbar do %>
  <li><%= link_to t('.popular._'), :controller => "post", :action => "popular_by_day", :month => @day.month, :day => @day.day, :year => @day.year %></li>
  <li><%= link_to t('.popular.week'), :controller => "post", :action => "popular_by_week", :year => @day.year, :month => @day.month, :day => @day.day %></li>
  <li><%= link_to t('.popular.month'), :controller => "post", :action => "popular_by_month", :year => @day.year, :month => @day.month %></li>
<% end %>

<%= render :partial => "footer" %>
