Allow #image-container to share data attributes with previews

Related to #1902
This commit is contained in:
Toks
2013-08-07 20:07:47 -04:00
parent 1c44aa0271
commit f3167f1f62
5 changed files with 16 additions and 17 deletions

View File

@@ -12,7 +12,7 @@
<% end %>
<% @posts.select {|x| Danbooru.config.can_user_see_post?(CurrentUser.user, x)}.each do |post| %>
<div class="post <%= PostPresenter.preview_class(post) %>" <%= PostPresenter.preview_attributes(post) %>>
<div id="post_<%= post.id %>" class="post <%= PostPresenter.preview_class(post) %>" <%= PostPresenter.data_attributes(post) %>>
<div class="preview">
<% if post.visible? %>
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>