<commit_before>  <% @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') %>
    <li><%= link_to _('Manage articles'), :controller => '/admin/content', :action => 'list' %></li>
  <% end %> 

  <div class="list">	
    <table>
    <tr>
      <th><%= _("Author")%></th>
      <th><%= _("Email")%></th>
      <th><%= _("Body")%></th>
      <th><%= _("IP")%></th>
      <th><%= _("Posted date")%></th>
	  <th><%= _("Status")%></th>
	  <th colspan="3"><%= _("Action") %></th>
    </tr>
    <% for comment in @comments -%>
    <tr>
      <td class="field"> <%=link_to_unless comment.url.blank?, h(comment.author), comment.url %></td>
      <td class="field"><%=h comment.email %></td>
      <td class="field"><%= link_to_permalink comment, truncate((comment.body).strip_html) %></td>
      <td class="field"><%=h comment.ip %></td>
      <td class="field"><%=comment.created_at.strftime("%d/%m/%Y at %H:%M") %></td>
	  <td class="operation"><%= image_tag 'checked.png' %></td>
	  <td class="operation"><%= link_to_show comment %></td>
      <td class="operation"><%= link_to_edit comment %></td>
      <td class="operation"><%= link_to_destroy comment %></td>    
    </tr>  
    <% end -%>
    </table>
  </div><commit_msg>Giving the comment list a new look and feel.<commit_after>  <% @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') %>
    <li><%= link_to _('Manage articles'), :controller => '/admin/content', :action => 'list' %></li>
  <% end %> 

  <div class="list">
	<ol>
	<% for comment in @comments -%>
	  <li>
	    <p><strong><%= mail_to h(comment.email), h(comment.author) %></strong> |
		<%= link_to_unless comment.url.blank?, h(comment.url), comment.url %> | 
		IP: <%=h comment.ip %></p>
		<%= comment.body %>
		<p><%=comment.created_at.strftime("%d/%m/%Y at %H:%M") %> – [ 
		   <%= link_to_edit comment %> | 
		   <%= link_to_destroy comment %> | 
		   <%= comment.state %> ]
		</p>
	  </li>
	<% end -%>
	</ol>
  </div>
{'fraction_non_alphanumeric': 0.26186213070725156, 'fraction_numerical': 0.0004476275738585497, 'mean_word_length': 3.408284023668639, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 107, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2629645', 'n_tokens_mistral': 893, 'n_tokens_neox': 805, 'n_words': 174}