aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/posts/archive.html.erb
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2010-11-18 10:52:10 -0600
committerJoe Sak <joe@joesak.com>2010-11-18 10:52:10 -0600
commitdc3cbaa0918c5194ae0f1e80024611c614be612f (patch)
tree148ec2e27b58295bfbfda2be12863d398d026713 /app/views/blog/posts/archive.html.erb
parentc610fee93b9e20e083c68d99ee941c6b4f507cf0 (diff)
downloadrefinerycms-blog-dc3cbaa0918c5194ae0f1e80024611c614be612f.tar.gz
refinerycms-blog-dc3cbaa0918c5194ae0f1e80024611c614be612f.tar.bz2
refinerycms-blog-dc3cbaa0918c5194ae0f1e80024611c614be612f.zip
Archive listing, views, helpers
@page added to PostsController TODO: language file stuff -- I left comments in the view files where these belong. I don't know how to test them from here
Diffstat (limited to 'app/views/blog/posts/archive.html.erb')
-rw-r--r--app/views/blog/posts/archive.html.erb19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/blog/posts/archive.html.erb b/app/views/blog/posts/archive.html.erb
new file mode 100644
index 0000000..d0855fa
--- /dev/null
+++ b/app/views/blog/posts/archive.html.erb
@@ -0,0 +1,19 @@
+<% content_for :body_content_left do %>
+ <%= @page[Page.default_parts.first.to_sym] %>
+ <h1>News Archive for <%= @archive_date.strftime('%B %Y') %></h1>
+ <section id="blog_posts">
+ <%= render :partial => "/blog/shared/post", :collection => @blog_posts %>
+ </section>
+ <%= "There are no blog articles posted for #{@archive_date.strftime('%B %Y')}. Stay tuned." unless @blog_posts.any? %>
+ <%# TODO: Add locale logic here - hubble is a n00b at that %>
+<% end %>
+
+<% content_for :body_content_right do %>
+ <%= @page[Page.default_parts.second.to_sym] %>
+ <%= render :partial => "/blog/shared/categories" %>
+ <%= render :partial => "/blog/shared/rss_feed" %>
+ <%= blog_archive_list %>
+<% end %>
+
+<%= render :partial => "/shared/content_page" %>
+<% content_for :head, stylesheet_link_tag('refinerycms-blog') %> \ No newline at end of file