Files
danbooru/app/views/comments/index_by_comment.html.erb
2013-03-19 23:11:58 +11:00

28 lines
1.0 KiB
Plaintext

<div id="c-comments">
<div id="a-index">
<h1>Comments</h1>
<div class="comments-for-post">
<div class="list-of-comments">
<% @comments.each do |comment| %>
<div class="post post-preview" data-tags="<%= comment.post.tag_string %>" data-uploader="<%= comment.post.uploader_name %>" data-rating="<%= comment.post.rating %>" data-flags="<%= comment.post.status %>" data-score="<%= comment.post.score %>" data-parent-id="<%= comment.post.parent_id %>" data-has-children="<%= comment.post.has_children? %>">
<div class="preview">
<%= link_to(image_tag(comment.post.preview_file_url), post_path(comment.post)) %>
</div>
<%= render :partial => "comments/partials/show/comment", :collection => [comment] %>
<div class="clearfix"></div>
</div>
<% end %>
</div>
</div>
<%= numbered_paginator(@comments) %>
</div>
</div>
<%= render "comments/secondary_links" %>
<% content_for(:page_title) do %>
Comments - <%= Danbooru.config.app_name %>
<% end %>