app/views/users/_comments.html.erb
<table class="table table-striped">
<tbody>
<% comments.each do |comment| %>
<% if comment.story.present? %>
<tr>
<td title="دیدگاه">
<i class='fa fa-comment'></i>
<%= link_to story_path(comment.story, :anchor => "comment_#{comment.id}") do %>
<%= truncate(comment.content) %>
<% end %>
</td>
<td title="خبر">
<i class='fa fa-book'></i>
<%= link_to story_path(comment.story) do %>
<%= truncate(comment.story.title) %>
<% end %>
</td>
<td title="تاریخ ایجاد دیدگاه">
<%= to_jalali(comment.created_at) %>
</td>
</tr>
<% end %>
<% end %>
</tbody>
</table>
<%= paginate comments %>