<commit_before><h1>Manage the unapproved reviews</h1>

<table cellspacing=6>
  <tr>
    <th>Date</th>
    <th>User/Loc</th>
    <th>Title / Product</th>
    <th>Body</th>
  </tr>

<% for review in @reviews %>
  <tr>
    <td> 
      <%= review.created_at.strftime("%d-%m-%y (%H:%M)") %>
    </td>
    <td> 
      <%= h review.name %> from <%= h review.location %>
    </td>
    <td>
      <%= h review.title %>
      <br/>
      for <%= link_to review.product.name, product_path(review.product) %>
    </td>
    <td style="border: 1px dashed green" width="60%">
      <br/>
      <%= h review.review %>
    </td>
    <td>
        <%= link_to t('approve'), {:action => 'approve', :id => review} %> |
        <%= link_to t('edit'), [:edit, :admin, review] %> |
        <%= link_to t('destroy'), [:admin, review], :method => :delete, :confirm => t('are_you_sure_review') %>
    </td>
  </tr>
<% end %>
</table>

<br />
<%= link_to t('back_reviews'), admin_blog_entries_path %>
<commit_msg>removed incorrect back link (NB few other exts have a back-to-configurations link - but there's always a link in the top bar...)<commit_after><h1>Manage the unapproved reviews</h1>

<table cellspacing=6>
  <tr>
    <th>Date</th>
    <th>User/Loc</th>
    <th>Title / Product</th>
    <th>Body</th>
  </tr>

<% for review in @reviews %>
  <tr>
    <td> 
      <%= review.created_at.strftime("%d-%m-%y (%H:%M)") %>
    </td>
    <td> 
      <%= h review.name %> from <%= h review.location %>
    </td>
    <td>
      <%= h review.title %>
      <br/>
      for <%= link_to review.product.name, product_path(review.product) %>
    </td>
    <td style="border: 1px dashed green" width="60%">
      <br/>
      <%= h review.review %>
    </td>
    <td>
        <%= link_to t('approve'), {:action => 'approve', :id => review} %> |
        <%= link_to t('edit'), [:edit, :admin, review] %> |
        <%= link_to t('destroy'), [:admin, review], :method => :delete, :confirm => t('are_you_sure_review') %>
    </td>
  </tr>
<% end %>
</table>


{'fraction_non_alphanumeric': 0.22475247524752476, 'fraction_numerical': 0.005940594059405941, 'mean_word_length': 2.5833333333333335, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 91, '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': '4653947', 'n_tokens_mistral': 822, 'n_tokens_neox': 753, 'n_words': 168}