This commit is contained in:
albert
2012-02-17 19:32:25 -05:00
parent 16a303a816
commit cb26bf5710
2 changed files with 13 additions and 3 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, :style => "margin-left: #{PostPresenter.margin(post)};"), post_path(post)) %>
<%= link_to(image_tag(post.preview_file_url, :style => "margin-left: #{PostPresenter.margin_left(post)}; margin-top: #{PostPresenter.margin_top(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>