<commit_before>- content_for_title('Macroinvertebrate Samples')
- content_for(:subnav) do
  = button_to('Add Sample', new_macroinvertebrate_sample_path, class: 'button primary', title: 'Add a new macroinvertebrate sample', method: 'get')
%section
  %table.table#list
    %thead
      %tr
        %th{scope: 'col'} ID
        %th{scope: 'col'} Collection Date
        %th{scope: 'col'} Plot
        %th{scope: 'col'} Location in Plot
        %th{scope: 'col'} Phylum
        %th{scope: 'col'} Quantity
        %th{scope: 'col'} Ecosystem Service
    %tbody
      - @macroinvertebrate_samples.each do |sample|
        %tr{:onclick => "location.href='#{url_for(sample)}'"}
          %td= sample.id
          %td= collected_on(sample)
          %td= sample.plot
          %td= sample.location_within_plot
          %td= sample.phylum
          %td= sample.quantity
          %td= sample.ecosystem_service
<commit_msg>macroinvertebrate: index.html.haml: Add pagination to view: References issue #153<commit_after>- content_for_title('Macroinvertebrate Samples')
- content_for(:subnav) do
  = button_to('Add Sample', new_macroinvertebrate_sample_path, class: 'button primary', title: 'Add a new macroinvertebrate sample', method: 'get')

= paginate @macroinvertebrate_samples

%section
  %table.table#list
    %thead
      %tr
        %th{scope: 'col'} ID
        %th{scope: 'col'} Collection Date
        %th{scope: 'col'} Plot
        %th{scope: 'col'} Location in Plot
        %th{scope: 'col'} Phylum
        %th{scope: 'col'} Quantity
        %th{scope: 'col'} Ecosystem Service
    %tbody
      - @macroinvertebrate_samples.each do |sample|
        %tr{:onclick => "location.href='#{url_for(sample)}'"}
          %td= sample.id
          %td= collected_on(sample)
          %td= sample.plot
          %td= sample.location_within_plot
          %td= sample.phylum
          %td= sample.quantity
          %td= sample.ecosystem_service

= paginate @macroinvertebrate_samples

{'fraction_non_alphanumeric': 0.12975164723770907, 'fraction_numerical': 0.0015205271160669033, 'mean_word_length': 2.9166666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1882986', 'n_tokens_mistral': 673, 'n_tokens_neox': 628, 'n_words': 148}