aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/shared/_post.html.erb
diff options
context:
space:
mode:
authordjones <dgjones@gmail.com>2010-09-07 16:41:02 +1200
committerdjones <dgjones@gmail.com>2010-09-07 16:41:02 +1200
commite097b2aa5f5b4f18a251ac62cfb5934b916413f2 (patch)
tree428abde0da95a98aab72b160d491da04910e032b /app/views/blog/shared/_post.html.erb
parentc55a5586e13b2625079067f345124e13ab98d68e (diff)
downloadrefinerycms-blog-e097b2aa5f5b4f18a251ac62cfb5934b916413f2.tar.gz
refinerycms-blog-e097b2aa5f5b4f18a251ac62cfb5934b916413f2.tar.bz2
refinerycms-blog-e097b2aa5f5b4f18a251ac62cfb5934b916413f2.zip
add clearfix around truncated area as floating images screw up the layout
Diffstat (limited to 'app/views/blog/shared/_post.html.erb')
-rw-r--r--app/views/blog/shared/_post.html.erb10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb
index 56ac89c..26f5fbf 100644
--- a/app/views/blog/shared/_post.html.erb
+++ b/app/views/blog/shared/_post.html.erb
@@ -1,11 +1,13 @@
-<li class='clearfix'>
+<li>
<h2><%= link_to post.title, blog_post_url(post) %></h2>
<p class='posted_at'>
<%= t('blog.shared.posts.created_at', :when => post.created_at.strftime('%d %B %Y')) %>
</p>
- <%= truncate(post.body,
- :length => RefinerySetting.find_or_set(:blog_post_teaser_length, 250),
- :preserve_html_tags => true) %>
+ <div clas='clearfix'>
+ <%= truncate(post.body,
+ :length => RefinerySetting.find_or_set(:blog_post_teaser_length, 250),
+ :preserve_html_tags => true) %>
+ </div>
<p>
<%= link_to t('blog.shared.posts.read_more'), blog_post_url(post) %>