An open source, stand-alone, customisable public spending data web app.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
529 B

  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))