<commit_before><% provide(:title, "Vorspiele verwalten") %>

<%# render 'filter_form', :path => jmd_performances_path %>

<p>
  <%= @performances.length %> von <%= Performance.current.visible_to(current_user).count %> Vorspielen
  &middot;
  <%= link_to "Alle anzeigen", jmd_performances_path %>
</p>

<table class="table table-hover">
  <thead>
    <tr>
      <!-- <th><%# sortable "stage_time", "Vorspiel" %>Vorspiel</th> -->
      <th>Angemeldet am</th>
      <th>
        <%# sortable "categories.popular, categories.solo desc, categories.name", "Kategorie" %>Kategorie
      </th>
      <th>Teilnehmer</th>
      <th>&nbsp;</th>
    </tr>
  </thead>
  <tbody>
    <% @performances.each do |performance| %>
    <tr>
      <!-- <td><%# l performance.stage_time, format: :tiny if performance.stage_time %></td> -->
      <td>
        <%= l performance.created_at, format: :short %>
        <% if performance.updated_at > performance.created_at %>
          <br /><%= info_label_tag("Editiert #{time_ago_in_words(performance.updated_at - 1.hour)}", :info)  %>
        <% end %>
      </td>
      <td><%= performance.category.name %></td>
      <td>
        <% performance.appearances.role_order.each do |appearance| %>
          <%= appearance.participant.full_name %>,
          <%= appearance.instrument.name %>
          <%= info_badge_tag(appearance.age_group) %>
          <br />
        <% end %>
      </td>
      <td>
        <%# link_to icon_tag("eye-open"), jmd_performance_path(performance) %>
        <%= link_to icon_tag("edit"), edit_jmd_performance_path(performance) %>
        <%= link_to icon_tag("remove"),  jmd_performance_path(performance),
              method: :delete, confirm: "Soll das Vorspiel wirklich gelöscht werden?" %>
      </td>
    </tr>
    <% end %>
  </tbody>
</table><commit_msg>Fixed issue where all signups were marked as updated due to minuscule difference in timestamps<commit_after><% provide(:title, "Vorspiele verwalten") %>

<%# render 'filter_form', :path => jmd_performances_path %>

<p>
  <%= @performances.length %> von <%= Performance.current.visible_to(current_user).count %> Vorspielen
  &middot;
  <%= link_to "Alle anzeigen", jmd_performances_path %>
</p>

<table class="table table-hover">
  <thead>
    <tr>
      <!-- <th><%# sortable "stage_time", "Vorspiel" %>Vorspiel</th> -->
      <th>Angemeldet am</th>
      <th>
        <%# sortable "categories.popular, categories.solo desc, categories.name", "Kategorie" %>Kategorie
      </th>
      <th>Teilnehmer</th>
      <th>&nbsp;</th>
    </tr>
  </thead>
  <tbody>
    <% @performances.each do |performance| %>
    <tr>
      <!-- <td><%# l performance.stage_time, format: :tiny if performance.stage_time %></td> -->
      <td>
        <%= l performance.created_at, format: :short %>
        <% if (performance.updated_at - performance.created_at) > 1.second %>
          <br /><%= info_label_tag("Editiert #{time_ago_in_words(performance.updated_at - 1.hour)}", :info)  %>
        <% end %>
      </td>
      <td><%= performance.category.name %></td>
      <td>
        <% performance.appearances.role_order.each do |appearance| %>
          <%= appearance.participant.full_name %>,
          <%= appearance.instrument.name %>
          <%= info_badge_tag(appearance.age_group) %>
          <br />
        <% end %>
      </td>
      <td>
        <%# link_to icon_tag("eye-open"), jmd_performance_path(performance) %>
        <%= link_to icon_tag("edit"), edit_jmd_performance_path(performance) %>
        <%= link_to icon_tag("remove"),  jmd_performance_path(performance),
              method: :delete, confirm: "Soll das Vorspiel wirklich gelöscht werden?" %>
      </td>
    </tr>
    <% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.17855227882037533, 'fraction_numerical': 0.0008042895442359249, 'mean_word_length': 2.882414151925078, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 125, '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': '4542247', 'n_tokens_mistral': 1367, 'n_tokens_neox': 1255, 'n_words': 232}