<commit_before><%= render 'header' %>

<%= will_paginate @events %>

<table class='table table-striped'>
  <thead>
    <tr>
      <th>Name</th>
      <th>Starting on</th>
      <th><%= t('actions') %></th>
    </tr>
  </thead>

  <tbody>
    <% unless @events.nil? %>
      <% @events.each do |event| %>
        <tr>
          <td><%= "#{link_to event.name, event} <span class='badge'>#{event.registrations.count}/#{event.maximum_number_of_registrants}</span>".html_safe %></td>
          <td><%= l event.starts_at, format: :tkh_default %></td>
          <td><%= link_to "<span class='glyphicon glyphicon-eye-open'></span> admin view".html_safe, admin_view_event_path(event), class: 'btn btn-xs btn-default' %><%= link_to "<span class='glyphicon glyphicon-pencil'></span> edit".html_safe, edit_event_path(event), class: 'btn btn-xs btn-primary' %><%= link_to "<span class='glyphicon glyphicon-plus'></span> duplicate".html_safe, duplicate_event_path(event), class: 'btn btn-xs btn-default', method: :post %></td>
        </tr>
      <% end %>
    <% else %>
      <tr><td colspan="3">There are no events yet.</td></tr>
    <% end %>
  </tbody>

</table>

<p><%= link_to "<span class='glyphicon glyphicon-plus'></span> new event".html_safe, new_event_path, class: 'btn btn-default' %></p>

<%= will_paginate @events %>

<%= render 'shared/admin_sidebar' %><commit_msg>Added image to event index view.<commit_after><%= render 'header' %>

<%= will_paginate @events %>

<table class='table table-striped'>
  <thead>
    <tr>
      <th>Pic</th>
      <th>Program Details</th>
    </tr>
  </thead>

  <tbody>
    <% unless @events.nil? %>
      <% @events.each do |event| %>
        <tr>
          <td><%= image_tag event.image.thumbnail %></td>
          <td>
            <%= "#{link_to event.name, event} <span class='badge'>#{event.registrations.count}/#{event.maximum_number_of_registrants}</span>".html_safe %><br />
            starting <%= l event.starts_at, format: :tkh_default %><br />
            <%= link_to "<span class='glyphicon glyphicon-eye-open'></span> admin view".html_safe, admin_view_event_path(event), class: 'btn btn-xs btn-default' %><%= link_to "<span class='glyphicon glyphicon-pencil'></span> edit".html_safe, edit_event_path(event), class: 'btn btn-xs btn-primary' %><%= link_to "<span class='glyphicon glyphicon-plus'></span> duplicate".html_safe, duplicate_event_path(event), class: 'btn btn-xs btn-default', method: :post %>
          </td>
        </tr>
      <% end %>
    <% else %>
      <tr><td colspan="3">There are no events yet.</td></tr>
    <% end %>
  </tbody>

</table>

<p><%= link_to "<span class='glyphicon glyphicon-plus'></span> new event".html_safe, new_event_path, class: 'btn btn-default' %></p>

<%= will_paginate @events %>

<%= render 'shared/admin_sidebar' %>
{'fraction_non_alphanumeric': 0.20391459074733095, 'fraction_numerical': 0.0007117437722419929, 'mean_word_length': 3.600654664484452, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, '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': '4308905', 'n_tokens_mistral': 1045, 'n_tokens_neox': 969, 'n_words': 207}