<commit_before><% title "Admin: Lesson Components" %>
<div class="container">

  <h2 class="blank-heading text-center">Lesson Components</h2>

  <p class="text-center action"> <%= link_to 'New Lesson Component', new_lesson_component_path, class: "btn btn-outline-primary" %></p>

  <%= form_tag(lesson_components_path, method: :get) do %>
  <div style="max-width: 320px; margin:auto;">
    <p><%= select_tag('course', options_from_collection_for_select(Course.all, 'id', 'title'), class: "form-control") %></p>
    <p class="text-center"><%= submit_tag('Filter', class: "btn btn-outline-primary") %></p>
  </div>
  <% end %>

  <div class="card">
    <table class="table table-striped table-hover">
      <thead>
        <tr>
              <th>Course</th>
              <th>Module</th>
              <th>Order</th>
              <th>Title</th>
              <th>Actions</th>
        </tr>
      </thead>

      <tbody>
        <% @lesson_components.each do |lesson_component| %>
          <tr <%= if params[:course].present? && lesson_component.lesson.course.id != params[:course].to_i then 'style="display: none;"'.html_safe end %>>
                <td><%= link_to lesson_component.lesson.course.title, lesson_component.lesson.course %></td>
                <td><%= link_to lesson_component.lesson.title, lesson_component.lesson %></td>
                <td><%= lesson_component.order %></td>
                <td><%= lesson_component.title %></td>
                <td><%= link_to 'Show', lesson_component, class: "btn btn-sm btn-outline-secondary" %> <%= link_to 'Edit', edit_lesson_component_path(lesson_component), class: "btn btn-sm btn-outline-secondary" %> <%= link_to 'Destroy', lesson_component, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-sm btn-outline-danger" %></td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div><commit_msg>Updated view for style<commit_after><% title "Admin: Lesson Components" %>
<div class="container">

  <h2 class="blank-heading text-center">Lesson Components</h2>

  <p class="text-center action"> <%= link_to 'New Lesson Component', new_lesson_component_path, class: "btn btn-outline-primary" %></p>

  <%= form_tag(lesson_components_path, method: :get) do %>
  <div style="max-width: 320px; margin:auto;">
    <p><%= select_tag('course', options_from_collection_for_select(Course.all, 'id', 'title'), class: "form-control") %></p>
    <p class="text-center"><%= submit_tag('Filter', class: "btn btn-outline-primary") %></p>
  </div>
  <% end %>

  <div class="card">
    <table class="table table-striped table-hover">
      <thead>
        <tr>
              <th>Course</th>
              <th>Module</th>
              <th>Style</th>
              <th>Order</th>
              <th>Title</th>
              <th>Actions</th>
        </tr>
      </thead>

      <tbody>
        <% @lesson_components.each do |lesson_component| %>
          <tr <%= if params[:course].present? && lesson_component.lesson.course.id != params[:course].to_i then 'style="display: none;"'.html_safe end %>>
                <td><%= link_to lesson_component.lesson.course.title, lesson_component.lesson.course %></td>
                <td><%= link_to lesson_component.lesson.title, lesson_component.lesson %></td>
                <td><%= case lesson_component.style when 1; "Multimodal Comments"; when 2; "Multimodal"; when 3; "Video Comments"; when 4; "Video"; when 5; "Discussion" end; %></td>
                <td><%= lesson_component.order %></td>
                <td><%= lesson_component.title %></td>
                <td><%= link_to 'Show', lesson_component, class: "btn btn-sm btn-outline-secondary" %> <%= link_to 'Edit', edit_lesson_component_path(lesson_component), class: "btn btn-sm btn-outline-secondary" %> <%= link_to 'Destroy', lesson_component, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-sm btn-outline-danger" %></td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

{'fraction_non_alphanumeric': 0.18377028714107366, 'fraction_numerical': 0.003745318352059925, 'mean_word_length': 2.9940179461615153, 'pattern_counts': {'":': 0, '<': 128, '<?xml version=': 0, '>': 128, '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': '5989505', 'n_tokens_mistral': 1377, 'n_tokens_neox': 1276, 'n_words': 281}