<commit_before>= link_to t('shared.create'), new_admin_schedule_item_path, class: 'button create'

%table
  %thead
    %tr
      %th
        = t('schedule_item.attributes.date')
      %th
        = t('schedule_item.attributes.hour')
      %th
        = t('schedule_item.attributes.end')
      %th
        = t('schedule_item.attributes.fitness_class')
      %th
        = t('schedule_item.attributes.capacity')
      %th
        = t('schedule_item.attributes.trainer')
      %th
        = t('schedule_item.attributes.room')
      %th
        = t('shared.actions')
  %tbody
    - schedule_items.each do |item|
      %tr{id: item.decorate.css_id}
        %td
          = l(item.start.in_website_time_zone, format: :simple_date)
        %td
          = l(item.start.in_website_time_zone, format: :simple_time)
        %td
          = l(item.stop.in_website_time_zone, format: :simple_time)
        %td
          = item.fitness_class.name
        %td
          = item.capacity
        %td
          = item.trainer.first_name
        %td
          = item.room.name<commit_msg>Add class color to admin schedule items index<commit_after>= link_to t('shared.create'), new_admin_schedule_item_path, class: 'button create'

-# TODO: scope by upcoming and past classes
%table
  %thead
    %tr
      %th
        = t('schedule_item.attributes.fitness_class')
      %th
        = t('schedule_item.attributes.date')
      %th
        = t('schedule_item.attributes.hour')
      %th
        = t('schedule_item.attributes.end')
      %th
        = t('schedule_item.attributes.capacity')
      %th
        = t('reservation.name').pluralize
      %th
        = t('schedule_item.attributes.trainer')
      %th
        = t('schedule_item.attributes.room')
      %th
        = t('shared.actions')
  %tbody
    - schedule_items.each do |item|
      %tr{id: item.decorate.css_id}
        %td.fitness-class-name
          %span.fitness-class-color{ style: "background-color: #{ item.fitness_class.color }"}
          = item.fitness_class.name
        %td
          = l(item.start.in_website_time_zone, format: :simple_date)
        %td
          = l(item.start.in_website_time_zone, format: :simple_time)
        %td
          = l(item.stop.in_website_time_zone, format: :simple_time)
        %td
          = item.capacity
        %td
          = item.reservations.count
        %td
          = item.trainer.first_name
        %td
          = item.room.name
{'fraction_non_alphanumeric': 0.12345679012345678, 'fraction_numerical': 0.0, 'mean_word_length': 2.0463659147869673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1076376', 'n_tokens_mistral': 793, 'n_tokens_neox': 784, 'n_words': 125}