<commit_before><% page_title "Events" %>

<table class="scaffolded">
  <tr>
    <th>Id</th>
    <th>Title</th>
    <th>Accepting?</th>
    <th>Deadline</th>
    <th>Manage</th>
  </tr>

<% if @events.blank? %>
  <tr>
    <td colspan="5" class="empty-text">
      &mdash; No events &mdash;
    </td>
  </tr>
<% end %>
<% for event in @events %>
  <tr class="<%= cycle("even", "odd") %>">
    <td><%=h event.id %></td>
    <td>
      <%= link_to h(event.title), [:manage, event] %>
    </td>
    <td><%=h event.accepting_proposals?.inspect %></td>
    <td><%=h event.deadline %></td>
    <td>
      <%= link_to 'Show', manage_event_path(event), :class => "showable" %>
      <%= link_to 'Proposals', event_proposals_path(event), :class => "showable" %>
      <%= link_to 'Edit', edit_manage_event_path(event), :class => "editable" %>
      <%= link_to 'Destroy', manage_event_path(event), :confirm => 'Are you sure?', :method => :delete, :class => :deletable %>
    </td>
  </tr>
<% end %>
</table><commit_msg>Improved events#index, switched to string CSS classes.<commit_after><% page_title "Events" %>

<table class="scaffolded">
  <tr>
    <th>Id</th>
    <th>Title</th>
    <th>Accepting?</th>
    <th>Deadline</th>
    <th>Manage</th>
  </tr>

<% if @events.blank? %>
  <tr>
    <td colspan="5" class="empty-text">
      &mdash; No events &mdash;
    </td>
  </tr>
<% end %>
<% for event in @events %>
  <tr class="<%= cycle("even", "odd") %>">
    <td><%=h event.id %></td>
    <td>
      <%= link_to h(event.title), [:manage, event] %>
    </td>
    <td><%=h event.accepting_proposals?.inspect %></td>
    <td><%=h event.deadline %></td>
    <td>
      <%= link_to 'Show', manage_event_path(event), :class => "showable" %>
      <%= link_to 'Proposals', event_proposals_path(event), :class => "showable" %>
      <%= link_to 'Edit', edit_manage_event_path(event), :class => "editable" %>
      <%= link_to 'Destroy', manage_event_path(event), :confirm => 'Are you sure?', :method => :delete, :class => "deletable" %>
    </td>
  </tr>
<% end %>
</table>
{'fraction_non_alphanumeric': 0.2371234207968902, 'fraction_numerical': 0.0009718172983479105, 'mean_word_length': 3.36228813559322, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 103, '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': '4876816', 'n_tokens_mistral': 856, 'n_tokens_neox': 798, 'n_words': 163}