<commit_before><div class="page-header">
  <h1>Ideas review</h1>
</div>

<div class="row form">
  <div class="col-sm-8">
    <%= render :partial => 'shared/flashes', :locals => { :flash => flash } %>

    <table class="table table-striped">
      <tr>
        <th>Title</th><th>Submitted</th><th>Author</th><th colspan="3">Actions</th>
      </tr>
      <% @ideas.each do |idea| %>
      <tr>
        <td><%= link_to truncate(idea.title, :length => 30), idea_path(idea), :target => "_blank" %></td>
        <td><%= idea.created_at %></td>
        <td><%= link_to idea.user.nice_name, idea.user.orcid_url, :target => "_blank" %></td>
        <% if idea.published? %>
        <td><%= button_to 'Publish', publish_admin_path(idea), :class => 'btn btn-xs btn-success' %></td>
        <% else %>
        <td><%= button_to 'Publish', mute_admin_path(idea), :class => 'btn btn-xs btn-success', :disabled => "disabled" %></td>
        <% end %>
        <% if idea.muted? %>
        <td><%= button_to 'Mute', mute_admin_path(idea), :class => 'btn btn-xs', :disabled => "disabled" %></td>
        <% else %>
        <td><%= button_to 'Mute', mute_admin_path(idea), :class => 'btn btn-warning btn-xs' %></td><commit_msg>Clickable button when not published<commit_after><div class="page-header">
  <h1>Ideas review</h1>
</div>

<div class="row form">
  <div class="col-sm-8">
    <%= render :partial => 'shared/flashes', :locals => { :flash => flash } %>

    <table class="table table-striped">
      <tr>
        <th>Title</th><th>Submitted</th><th>Author</th><th colspan="3">Actions</th>
      </tr>
      <% @ideas.each do |idea| %>
      <tr>
        <td><%= link_to truncate(idea.title, :length => 30), idea_path(idea), :target => "_blank" %></td>
        <td><%= idea.created_at %></td>
        <td><%= link_to idea.user.nice_name, idea.user.orcid_url, :target => "_blank" %></td>
        <% if idea.published? %>
        <td><%= button_to 'Publish', publish_admin_path(idea), :class => 'btn btn-xs btn-success', :disabled => "disabled" %></td>
        <% else %>
        <td><%= button_to 'Publish', mute_admin_path(idea), :class => 'btn btn-xs btn-success' %></td>
        <% end %>
        <% if idea.muted? %>
        <td><%= button_to 'Mute', mute_admin_path(idea), :class => 'btn btn-xs', :disabled => "disabled" %></td>
        <% else %>
        <td><%= button_to 'Mute', mute_admin_path(idea), :class => 'btn btn-warning btn-xs' %></td>
{'fraction_non_alphanumeric': 0.2278688524590164, 'fraction_numerical': 0.004918032786885246, 'mean_word_length': 3.0887772194304857, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 119, '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': '1052890', 'n_tokens_mistral': 919, 'n_tokens_neox': 858, 'n_words': 187}