30 lines
950 B
Plaintext
30 lines
950 B
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 id="post_<%= comment.post.id %>" class="post <%= PostPresenter.preview_class(comment.post) %>" <%= PostPresenter.data_attributes(comment.post) %>>
|
|
<div class="preview">
|
|
<% 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>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= numbered_paginator(@comments) %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "comments/secondary_links" %>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Comments - <%= Danbooru.config.app_name %>
|
|
<% end %>
|