1
0
Fork 0
bascht.com/source/calendar.html.erb

39 lines
910 B
Plaintext

---
pageable: true
---
<div class="large-10 columns" role="content">
<h1>Posts
<% case page_type
when 'day' %>
am <%= I18n.localize(Time.new(year, month, day), :format => "%d. %B %Y") %>
<% when 'month' %>
im <%= I18n.localize(Time.new(year, month, 1), :format => "%B %Y") %>
<% when 'year' %>
im Jahr <%= year %>
<% end %>
</h1>
<% if paginate && num_pages > 1 %>
<p>Page <%= page_number %> of <%= num_pages %></p>
<% if prev_page %>
<p><%= link_to 'Previous page', prev_page %></p>
<% end %>
<% end %>
<ul>
<% page_articles.each_with_index do |article, i| %>
<li><%= link_to article.title, article %> <span><%= article.date.strftime('%b %e') %></span></li>
<% end %>
</ul>
<% if paginate %>
<% if next_page %>
<p><%= link_to 'Next page', next_page %></p>
<% end %>
<% end %>
</div>
<div class="large-2 columns">
<%= partial "blog-calendar" %>
</div>