#1849: filter images for safebooru

This commit is contained in:
r888888888
2013-07-18 17:26:52 -07:00
parent 5ad3571d8b
commit 22bd07072a
6 changed files with 21 additions and 14 deletions

View File

@@ -7,7 +7,9 @@
<% @comments.each do |comment| %>
<div class="post <%= PostPresenter.preview_class(comment.post) %>" <%= PostPresenter.preview_attributes(comment.post) %>>
<div class="preview">
<%= link_to(image_tag(comment.post.preview_file_url), post_path(comment.post)) %>
<% if comment.post.visible? %>
<%= link_to(image_tag(comment.post.preview_file_url), post_path(comment.post)) %>
<% end %>
</div>
<%= render :partial => "comments/partials/show/comment", :collection => [comment] %>
<div class="clearfix"></div>