diff options
Diffstat (limited to 'app/views/refinery')
-rw-r--r-- | app/views/refinery/sidebar_modules/_sidebar_blog_category.html.erb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/refinery/sidebar_modules/_sidebar_blog_category.html.erb b/app/views/refinery/sidebar_modules/_sidebar_blog_category.html.erb new file mode 100644 index 0000000..c1d80f1 --- /dev/null +++ b/app/views/refinery/sidebar_modules/_sidebar_blog_category.html.erb @@ -0,0 +1,8 @@ +<% content_for "sidebar_module_#{sidebar_blog_category.title}_body" do %> + <% sidebar_blog_category.body.each do |post| %> + <%= content_tag :div, :class => :sidebar_blog_headline do %> + <%= link_to post.title, blog_post_path(post) %> + <% end %> + <% end %> +<% end %> +<%= render 'common/sidebar_module', :sidebar_module => sidebar_blog_category %> |