<% @page_heading = "Comments for #{ link_to h(@article.title), :controller => '/admin/content', :action => 'show', :id => @article }" %> <% content_for('tasks') do %> <%= task_new('Write a comment') %>
  • <%= link_to _('Manage articles'), :controller => '/admin/content', :action => 'list' %>
  • <% end %>
    <% for comment in @comments -%> <% end -%>
    <%= _("Author")%> <%= _("Email")%> <%= _("Body")%> <%= _("IP")%> <%= _("Posted date")%> <%= _("Edit")%> <%= _("Delete")%>
    <%= image_tag 'checked.gif' %> <%=link_to_unless comment.url.blank?, h(comment.author), comment.url %> <%=h comment.email %> <%=link_to truncate((comment.body).strip_html), :action => 'show', :id => comment.id %> <%= link_to_permalink comment,image_tag('go.png') %> <%=h comment.ip %> <%=h distance_of_time_in_words_to_now(comment.created_at) %> <%= link_to_edit comment %> <%= link_to_destroy comment %>