28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
<div id="c-comments">
|
|
<div id="a-index">
|
|
<h1>Comments</h1>
|
|
|
|
<% if @posts.empty? %>
|
|
<%= render "post_sets/blank" %>
|
|
<% end %>
|
|
|
|
<% @posts.select {|x| Danbooru.config.can_user_see_post?(CurrentUser.user, x)}.each do |post| %>
|
|
<div class="post post-preview" data-tags="<%= post.tag_string %>" data-uploader="<%= post.uploader_name %>" data-rating="<%= post.rating %>" data-flags="<%= post.status %>" data-score="<%= post.score %>" data-parent-id="<%= post.parent_id %>" data-has-children="<%= post.has_children? %>" data-id="<%= post.id %>" data-width="<%= post.image_width %>" data-height="<%= post.image_height %>">
|
|
<div class="preview">
|
|
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
|
|
</div>
|
|
<%= render "comments/partials/index/list", :post => post, :comments => post.comments.visible(CurrentUser.user).recent.reverse, :show_header => true %>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= numbered_paginator(@posts) %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "comments/secondary_links" %>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Comments - <%= Danbooru.config.app_name %>
|
|
<% end %>
|