aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/posts/tagged.html.erb
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-03-11 14:23:44 -0600
committerJoe Sak <joe@joesak.com>2011-03-11 14:23:44 -0600
commit3748c1d9efabde0b62db7b92281c711c6411cfce (patch)
tree82f494d8cea40c009a70050c1a99491e58385612 /app/views/blog/posts/tagged.html.erb
parentb3f95341c3b67123084563bd38f9145b8ef4da78 (diff)
downloadrefinerycms-blog-3748c1d9efabde0b62db7b92281c711c6411cfce.tar.gz
refinerycms-blog-3748c1d9efabde0b62db7b92281c711c6411cfce.tar.bz2
refinerycms-blog-3748c1d9efabde0b62db7b92281c711c6411cfce.zip
Closes GH-29. Blog posts act as taggable. rspec & cukes passing
Diffstat (limited to 'app/views/blog/posts/tagged.html.erb')
-rw-r--r--app/views/blog/posts/tagged.html.erb22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/blog/posts/tagged.html.erb b/app/views/blog/posts/tagged.html.erb
new file mode 100644
index 0000000..29de791
--- /dev/null
+++ b/app/views/blog/posts/tagged.html.erb
@@ -0,0 +1,22 @@
+<% content_for :body_content_title, "Posts tagged &#8220;#{@tag_name.titleize}&#8221;".html_safe -%>
+
+<% content_for :body_content_left do %>
+ <% if @blog_posts.any? %>
+ <section id="blog_posts">
+ <%= render :partial => "/blog/shared/post", :collection => @blog_posts %>
+ <%= will_paginate @blog_posts %>
+ </section>
+ <% else %>
+ <p><%= t('.no_blog_articles_yet') %></p>
+ <% end %>
+<% end %>
+
+<% content_for :body_content_right do %>
+ <%= render :partial => "/blog/shared/categories" %>
+ <%= render :partial => "/blog/shared/tags" %>
+ <%= render :partial => "/blog/shared/rss_feed" %>
+ <%= blog_archive_list %>
+<% end %>
+
+<%= render :partial => "/shared/content_page" %>
+<% content_for :stylesheets, stylesheet_link_tag('refinerycms-blog') %>