diff options
author | Harald Eilertsen <haraldei@andeuin.net> | 2014-02-06 23:53:45 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@andeuin.net> | 2014-02-06 23:53:45 +0100 |
commit | cd29f12cf546d3afa883ce8e67eb9d5347875714 (patch) | |
tree | af5a1b9c589e5d0efe1866fe93d1493adb16e2d1 /app/views/sidebar_modules/_sidebar_blog_category.html.erb | |
parent | eef973923042a20d90dd66fa653bd97e12126780 (diff) | |
download | hmnoweb-cd29f12cf546d3afa883ce8e67eb9d5347875714.tar.gz hmnoweb-cd29f12cf546d3afa883ce8e67eb9d5347875714.tar.bz2 hmnoweb-cd29f12cf546d3afa883ce8e67eb9d5347875714.zip |
Make sidebars nicer.
- Module headings now go all the way out.
- Side body content is included like a module only if not empty.
Diffstat (limited to 'app/views/sidebar_modules/_sidebar_blog_category.html.erb')
-rw-r--r-- | app/views/sidebar_modules/_sidebar_blog_category.html.erb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/sidebar_modules/_sidebar_blog_category.html.erb b/app/views/sidebar_modules/_sidebar_blog_category.html.erb index 53556e7..5dc0a27 100644 --- a/app/views/sidebar_modules/_sidebar_blog_category.html.erb +++ b/app/views/sidebar_modules/_sidebar_blog_category.html.erb @@ -1,8 +1,11 @@ <% content_for "sidebar_module_#{sidebar_module.title}_body" do %> <% sidebar_module.body.each do |post| %> - <%= content_tag :div, :class => :sidebar_blog_headline do %> + <%= content_tag :header, :class => :sidebar_blog_headline do %> <%= link_to post.title, refinery.blog_post_path(post) %> <% end %> + <%= content_tag :article, :class => :sidebar_blog_content do %> + <%= blog_post_teaser(post) %> + <% end %> <% end %> <% end %> <%= render 'sidebar_modules/sidebar_module', :sidebar_module => sidebar_module %> |