This commit is contained in:
albert
2012-02-17 15:15:12 -05:00
parent 3e8345390b
commit 727a26615c
4 changed files with 16 additions and 14 deletions

View File

@@ -9,7 +9,7 @@
<% @posts.each do |post| %>
<div class="post">
<div class="preview">
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
<%= link_to(image_tag(post.preview_file_url, :style => "margin-left: #{PostPresenter.margin(post)};"), post_path(post)) %>
</div>
<%= render "comments/partials/index/list", :post => post, :comments => post.comments.visible(CurrentUser.user).recent, :show_header => true %>
<div class="clearfix"></div>