An open source, stand-alone, customisable public spending data web app.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

41 rinda
912 B

  1. .grid_12
  2. %ul#breadcrumb
  3. %li.home
  4. %a{ :href => '/'} Home
  5. %li
  6. %a{ :href => '/suppliers' } Suppliers
  7. %li
  8. = @supplier.name
  9. %h2= @page_title = @supplier.name + " (Supplier)"
  10. %p.noprint.download
  11. %a{ :href => "/suppliers/#{@supplier.slug}.csv" }
  12. Download data as CSV
  13. %table
  14. %tr
  15. %th Date
  16. %th Directorate
  17. %th Service
  18. %th.right £
  19. - for payment in @supplier.payments
  20. %tr
  21. %td= payment.d.strftime("%d %b %Y")
  22. %td
  23. %a{ :href => '/directorates/' + payment.directorate.slug }
  24. = payment.directorate.name
  25. %td
  26. %a{ :href => '/services/' + payment.service.slug }
  27. = payment.service.name
  28. %td.right= sprintf("%0d", payment.amount)
  29. %tr
  30. %td
  31. %td
  32. %td
  33. %strong TOTAL
  34. %td.right= sprintf("%0d", @total)