<commit_before><div class="main-header">
  <h2>Registrations</h2>
  <em>list of people attending this event</em>
</div>

<div class="col-md-12">
  <div class="widget widget-table">
    <div class="widget-header">
      <h3><i class="fa fa-table"></i></h3>
    </div>
    <div class="widget-content">
      <div class="table-responsive">
        <table class="table  table-bordered table-striped table-hover">
          <thead>
            <tr style="font: bold">
              <th>Name</th>
              <th>Email</th>
              <th>Role</th>
              <th>Gender</th>
              <th>Age</th>
              <th>Locality</th>
              <th style="width: 150px">Phone</th>
              <th>Payment Adjustment</th>
              <th>Paid?</th>
              <th>Medical Release Form?</th>
              <th>Serving?</th>
              <th></th>
            </tr>
          </thead>
          <tbody>
          <% if @event.registrations.count > 0 %>
            <% @event.registrations.each do |r| %>
            <tr id="reg-<%= r.id %>">
            <td><%= r.user.name %></td>
            <td><%= r.user.email %></td>
            <td><%= r.user.role.capitalize %></td>
            <td><%= r.user.gender.to_s[0] %></td>
            <td><%= r.user.age %></td>
            <td><%= r.user.locality_city %></td>
            <td>C: <%= format_phone_number(r.user.cell_phone) %><br />
              H: <%= format_phone_number(r.user.home_phone) %><br />
              W: <%= format_phone_number(r.user.work_phone) %></td>
            <td><%= number_to_currency(r.payment_adjustment) %></td>
            <td><%= display_yes_no(r.has_been_paid) %></td>
            <td><%= display_yes_no(r.attend_as_serving_one) %></td>
            <td><%= display_yes_no(r.has_medical_release_form) %></td>
            <td>
              <%= link_to 'Show', event_registration_path(@event,r) %>
              <%= link_to 'Edit', edit_event_registration_path(@event,r) %></td>
          </tr> 
        <% end %>
        <% else %>
            <tr><td colspan=9><center>No one registered for this event...</center></td></tr>
        <% end %>
          </tbody>
        </table>
      </div>
      <%= link_to 'Back', event_registrations_path(@event), class: 'btn btn-default' %><commit_msg>Fix path for 'back'button - should return to Event#show.html<commit_after><div class="main-header">
  <h2>Registrations</h2>
  <em>list of people attending this event</em>
</div>

<div class="col-md-12">
  <div class="widget widget-table">
    <div class="widget-header">
      <h3><i class="fa fa-table"></i></h3>
    </div>
    <div class="widget-content">
      <div class="table-responsive">
        <table class="table  table-bordered table-striped table-hover">
          <thead>
            <tr style="font: bold">
              <th>Name</th>
              <th>Email</th>
              <th>Role</th>
              <th>Gender</th>
              <th>Age</th>
              <th>Locality</th>
              <th style="width: 150px">Phone</th>
              <th>Payment Adjustment</th>
              <th>Paid?</th>
              <th>Medical Release Form?</th>
              <th>Serving?</th>
              <th></th>
            </tr>
          </thead>
          <tbody>
          <% if @event.registrations.count > 0 %>
            <% @event.registrations.each do |r| %>
            <tr id="reg-<%= r.id %>">
            <td><%= r.user.name %></td>
            <td><%= r.user.email %></td>
            <td><%= r.user.role.capitalize %></td>
            <td><%= r.user.gender.to_s[0] %></td>
            <td><%= r.user.age %></td>
            <td><%= r.user.locality_city %></td>
            <td>C: <%= format_phone_number(r.user.cell_phone) %><br />
              H: <%= format_phone_number(r.user.home_phone) %><br />
              W: <%= format_phone_number(r.user.work_phone) %></td>
            <td><%= number_to_currency(r.payment_adjustment) %></td>
            <td><%= display_yes_no(r.has_been_paid) %></td>
            <td><%= display_yes_no(r.attend_as_serving_one) %></td>
            <td><%= display_yes_no(r.has_medical_release_form) %></td>
            <td>
              <%= link_to 'Show', event_registration_path(@event,r) %>
              <%= link_to 'Edit', edit_event_registration_path(@event,r) %></td>
          </tr> 
        <% end %>
        <% else %>
            <tr><td colspan=9><center>No one registered for this event...</center></td></tr>
        <% end %>
          </tbody>
        </table>
      </div>
      <%= link_to 'Back', event_path(@event), class: 'btn btn-default' %>
{'fraction_non_alphanumeric': 0.1956474428726877, 'fraction_numerical': 0.005223068552774755, 'mean_word_length': 1.8179031269160024, 'pattern_counts': {'":': 0, '<': 213, '<?xml version=': 0, '>': 215, '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': '6098014', 'n_tokens_mistral': 1631, 'n_tokens_neox': 1527, 'n_words': 267}