An open source, stand-alone, customisable public spending data web app.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

servicepaymentsdetail.haml 529 B

123456789101112131415161718192021222324
  1. %table
  2. %tr
  3. %th Date
  4. %th Ref.
  5. %th Supplier
  6. %th.right £
  7. - for payment in @payments
  8. %tr
  9. %td= payment.d.strftime("%d %b %Y")
  10. %td.right
  11. %a{ :href => "/payments/#{payment.id}" }
  12. = payment.id
  13. %td
  14. %a{ :href => '/suppliers/' + payment.supplier.slug }
  15. = payment.supplier.name
  16. %td.right= commify(sprintf("%0d", payment.amount))
  17. %tr
  18. %td
  19. %td
  20. %td
  21. %strong TOTAL
  22. %td.right= commify(sprintf("%0d", @total))