<commit_before>.grid_12
  %ul#breadcrumb
    %li.home
      %a{ :href => '/'} Home
    %li
      %a{ :href => '/services' } Services
    %li
      %a{ :href => "/services/#{@service.slug}" }
        = @service.name
    %li Payments to Suppliers

  %h2= @page_title = @service.name
  
  %p
    A service in the 
    %a{ :href => '/directorates/' + @service.directorate.slug }
      = @service.directorate.name
      Directorate

  %p.noprint
    %a{ :href => "/services/#{@service.slug}" }
      &laquo; Suppliers by Spend summary for
      = @service.name
  
  %p.noprint.download
    %a{ :href => "/services/#{@service.slug}/payments.csv" }
      Download data as CSV
      
.clear

.grid_9 
  
  %h3 Payments to Suppliers

  %table
    %tr
      %th Date
      %th Ref.
      %th Supplier
      %th.right &pound;
        
    - for payment in @service.payments
      %tr
        %td= payment.d.strftime("%d&nbsp;%b&nbsp;%Y")
        %td.right
          %a{ :href => "/payments/#{payment.id}" }
            = payment.id
        %td
          %a{ :href => '/suppliers/' + payment.supplier.slug }
            = payment.supplier.name
        %td.right= commify(sprintf("%0d", payment.amount))
    
    %tr
      %td
      %td<commit_msg>Improved page title for service/payments to suppliers<commit_after>.grid_12
  %ul#breadcrumb
    %li.home
      %a{ :href => '/'} Home
    %li
      %a{ :href => '/services' } Services
    %li
      %a{ :href => "/services/#{@service.slug}" }
        = @service.name
    %li Payments to Suppliers

  %h2= @page_title = "#{@service.name}: Payments to Suppliers"
  
  %p
    A service in the 
    %a{ :href => '/directorates/' + @service.directorate.slug }
      = @service.directorate.name
      Directorate

  %p.noprint
    %a{ :href => "/services/#{@service.slug}" }
      &laquo; Suppliers by Spend summary for
      = @service.name
  
  %p.noprint.download
    %a{ :href => "/services/#{@service.slug}/payments.csv" }
      Download data as CSV
      
  %table
    %tr
      %th Date
      %th Ref.
      %th Supplier
      %th.right &pound;
        
    - for payment in @service.payments
      %tr
        %td= payment.d.strftime("%d&nbsp;%b&nbsp;%Y")
        %td.right
          %a{ :href => "/payments/#{payment.id}" }
            = payment.id
        %td
          %a{ :href => '/suppliers/' + payment.supplier.slug }
            = payment.supplier.name
        %td.right= commify(sprintf("%0d", payment.amount))
    
    %tr
      %td
      %td
{'fraction_non_alphanumeric': 0.1591000401767778, 'fraction_numerical': 0.004017677782241864, 'mean_word_length': 1.89198606271777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3071866', 'n_tokens_mistral': 896, 'n_tokens_neox': 878, 'n_words': 188}